I am trying to match a string exactly with special characters.
Example String
Hard Drive (Red)
Since I have '(' and ')' in my string ,I am not able to match the string exactly.What i have tried,most of them works only for the string like
/^ Hard Drive $/
This works only if there is no ( )
But,
/^ Hard Drive(Red) $/
The above is incorrect regEx.What i am trying is to match a string exactly with special characters in it.