当前位置:网站首页>Flutter dart regular regexp special characters $, () (IV)

Flutter dart regular regexp special characters $, () (IV)

2022-06-24 18:12:00 xmiaoshen

Tank you so match ( thank you )

DartPad Online tools
$ Start at the end of the string and find out if there is a matching string

$ Match from the end of the string

From a string abcABC123 Start looking at the end Whether there is ABC Any character in the string
The search results returned true So it does exist
$ There is a matching string starting from the end of the string
From a string ddaf123\n Find out if it exists \n
 matching \n
From a string ddaf123\r Find out if it exists \r
 matching \r

From a string ddaf123$ Find out if it exists $
 Whether there is $

() Match the contents in brackets

Match double quotes with no content
 Match double quotes with no content
Match empty string
 Match empty string
Match the entire content in parentheses 123
 Match the contents in brackets 123
[123] Yes match to content 123 Inside to any character And (123) The whole content in the matching brackets is different
 Insert picture description here
Match content 123 | 456 | abc
 Match content 123|456|abc
Whether the contents of the string contain double brackets () Any single parenthesis inside Left parenthesis ’(’ or Right bracket ’)’
The single bracket inside the matching double bracket must be added with the transition symbol ‘’
 Match left parenthesis
 Match right parenthesis
 Match right parenthesis

summary

$ Start at the end of the string to find out if there is and [ … ] The contents of any string matching inside
() Whether there is a string matching the whole content in the brackets in the string , for example : (123) (456) (abc)
(…|…|…|…) Whether there are multiple contents in the matching brackets in the string , for example : (123 | 456 | abc)

原网站

版权声明
本文为[xmiaoshen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211407336079.html