What is the regular expression for matching \'(\' in a string?
Following is the scenario :
I have a string
str = \"abc(efg)\";
Two options:
Firstly, you can escape it using a backslash -- \(
\(
Alternatively, since it's a single character, you can put it in a character class, where it doesn't need to be escaped -- [(]
[(]