I can't match the character "#" at the end of a word with regex
/\b(C#)\b/i
I'm working on some MongoDB queries. The subject of the search is programming languages on a given text field of my collection.
The regex I'm using, and is almost always working, is
/\b(java|php)\b/i
(for a concrete case where I'm looking for Java and PHP).
The word boundaries are needed to search whole words (javascript must not match java)
The problem is, as said before, when I look for "C#", the regex just fails, throwing no results.
The regex works if I remove the last boundary, but then the java/javascript example fails.
I've being stuck in this for a couple of days now, any help would be appreciated.