Some symbols represent the special meaning of abstraction in an expression:
Example 1:
When the expression "^aaa" matches "xxx aaa xxx", the result of the match is: failure. Because "^" requires matching with the beginning of the string, the "^aaa" can be matched only when "AAA" is at the beginning of the string, for example: "AAA xxx xxx".
Example 2:
When the expression "aaa$" matches "xxx aaa xxx", the result of the match is: failure. Because "$" requires a match to the end of the string, "aaa$" can be matched only when "AAA" is at the end of the string, for example: "xxx xxx aaa".
Example 3:
Expression "./b." When matching the "@@ ZZFCTHOTFIXZ", the result of the match is: "@a", the match to the position is: start at 2, end at 4.
Further clarification:
"/b" is similar to "^" and "$", but it does not match any characters, but it requires that it be in the left and right sides of the position in the match result, one side is the "/w" range and the other side is the range of "/w".
Example 4:
When the expression "/bend/b" matches "weekend,endfor,end", the result of the match is: "End", matching to the position: starting at 15, ending at 18.
Some symbols can affect the relationship between sub-expressions within an expression:
Example 5:
Expression "tom| When Jack "matches the string" I ' m Tom, he is Jack, the match is: success; the match is: "Tom"; the matching position is: start at 4, end at 7. When the next match is matched, the result is: "Jack", the match to the position: starting at 15, ending at 19.
Example 6:
Expression "(go/s*) +" when matching "Let's Go Go go!", the matching result is: success; match to the content is: "Go Go Go"; The matching position is: start at 6, end at 14.
Example 7:
Expression "¥ (/d+/.? /d*) "When matching" $10.9,¥20.5 ", the result of the match is: success; match to:" ¥20.5 "; match to position: start at 6, end at 10. The separately obtained parenthesis range matches to the content: "20.5".
Some other special symbols that represent abstract meanings