How do I build a regex pattern that searches over a text T and tries to find a search string S.
There are 2 requirements:
- S could be made of any character.
- S could be anywhere in the string but can't be part of a word.
I know that in order to escape special regex characters I put the search string between \Q and \E as such:
\EMySearch_String\Q
How do I prevent finding partial matching of S in T?