I have been facing an issue with regular expression string matching. Here is my string - var String detectionString = Stack Overflow (hello)
I tried this regular expression test - \s(detectionString)\b but could succeed to match a string Stack Overflow only. Can anyone help to provide a regular expression string that can match & include words inside parenthesis also.
Here I tried to match my string and successful but it requires regex expression in between string(square bracket covering parenthesis can solve this problem) like (Stack Overflow [ ( ] hello [ ) ]) . and my problem is I can't add expression in between string.
Note: There can be any kind of string with parenthesis like - var String detectionString = Krunal Bhavsar 123 (iOS).