Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I match a word like @hello# without catching the word @hello#1? I have tried the \\b@hello#\\b word container but will not work with the special characters.
I am trying to create a "find and replace" feature in an app which needs to search for words with special characters so is there a more general solution to this? This feature has a "match only whole words" checkbox.
\s@hello#\s
?