To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ) . E.g., \. matches “.” ; regex \+ matches “+” ; and regex \( matches “(” . You also need to use regex \\ to match “\” (back-slash).
To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ) . E.g., \. matches “.” ; regex \+ matches “+” ; and regex \( matches “(” . You also need to use regex \\ to match “\” (back-slash).