I need find some substring in string. There are NOT letter symbols before and after this substring. Also there are begin and end of string near this substring.
For example, I need find "qwe" in next cases:
1) " qwe "
2) "+qwe("
3) " qwe"
4) "qwe("
5) "qwe"
And NOT find "qwe" in case "qwer"
I try this regex: