I have the following regex (?<!#)hazcons?0 and my sample test messages. The trouble I am having is converting this to Javascript from PHP since Javascript does not support negative lookbehind. I would like to match for any hazcon 0 or hazcon0 but ignoring any instances of #hazcon0 and #hazcon 0.
#hazcon0 <- don't match this
#hazcon 0 <- don't match this
hazcon 0
hazcon 0
blah blah blah blah hazcon0 blah blah
blah blah blah blah hazcon 0 blah blah
If there is a better way to do this I would like to understand!
