We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Matching Specific Characters
Matching Specific Characters
Sort by
recency
|
83 Discussions
|
Please Login in order to post a comment
regex pattern = r'^[1,2,3][1,2,0][x,s,0][3,0,A,a][x,s,u][.,,]$'
Negating Character Classes (
[^]
) – Use^
inside[]
to match any character except those listed.- Example:
[^a-z]
matches anything that is not a lowercase letter.Ekbet16 login
Java 15
Regex pattern = "^[123][120][xs0][30Aa][xsu][.,]$"