I answered this question, which has now been closed by a gold tag badge as a duplicate.
The original question is more of less, why is this regex not working? and the "duplicate" question is a community wiki listing most of the regex syntax along with various online resources for regex.
Should this have been closed? I can understand where the closer is coming from to a degree, but, at least when I was learning regex, pointing me to a list of regex characters would not have helped me understand what I was doing wrong?
Additionally, the closer says that my answer (the orignal version which has now been modified by a suggested edit from the OP) is not an answer as I merely explained why the OP's regex was not working. As that was the question, I feel that it was an answer.
I'd like to know the community's' opinion on this, as my understanding is that this really isn't a duplicate. Should this have been closed?
regex
tag, don't answer but run. It is a tag that almost exclusively attracts "gimme teh codez" questions, which most of the regular users loathe. It is an easy tag to score some reputation, but it's hardly ever useful for anyone but the OP.