I have seen a few other similar questions, but I can't seem to get it to work. What I am trying to do is in JavaScript match a string with issue numbers. I have that part working fine, but I don't want to match it if it starts with target='_blank'>
.
These should match...
Issue# 123
Issue #123
Issue 123
Issue no 123
Issue number 123
Issue: 123
These should not...
target='_blank'>Issue# 123
target='_blank'>Issue #123
target='_blank'>Issue 123
target='_blank'>Issue no 123
target='_blank'>Issue number 123
target='_blank'>Issue: 123
What I have so far is
(?!target='_blank'>)(issue(?: number| no)?[ #:]?[ #]?([0-9]+))
But it is still matching the ones it shouldn't.
Any help would be great.