Im trying to match #TEST in a string.. lets say its "this is a #TEST"
The script that does the matching automatically wraps the search string in \b tags so the resulting regex would look like this: \b#TEST\b .. this obviously doesn't work.
How can i change the search string to make it work ?
EDIT: i opted to change the wrapping function so the generated expression looks like this:
(?<!\S)#TEST(?!\S)
edit2: escaping my text..
The '\' character is escaping the 'b' character. Replace '\b' with '\\b', assuming your function is literally wrapping the search string with '\b'.
So: '\\b#TEST\\b'