Regular expressions are particularly useful when the filter string, but sometimes can not remember the syntax, in addition to some common match, some used their own needs down to look after
PS: Regexper JS style is regular, so in JAVA \ \\ needs
Screening package name
E.g:
com.test.dto.demo.dto
want to replace:
com.test.po.demo.po
expression:
^*\\.dto$|^*\\.dto(?=\\.)$*
Match case name
PS:
[] Matches the character, can be added as a range: A-Za-z0-9
E.g
XXXQuery
XXXquery
XXXQUERY
expression
^*[qQ][uU][eE][rR][yY]$
Format string
In a string space, carriage return exclusion
\s*|\t|\r|\n