Greetings fellow monks...
This is a fairly silly regex question, but I'm loosing my mind over it. Please help. :) Right now I have:
/(\W|\b)($worda)(\W+)($wordb)(\W|\b)/It's the center (\W+) that's the problem. Right now this matches most of what I need. However, it misses in when the text I'm searching has something like "worda <U>wordb".
What I'd like to do is have something like:
(\W+|<.?>|<.?>\W+|\W+<.?>|<.?>\W+<.?>|...)In other words, find me \W+ but ignore all HTML tags (but include them in $3). See, I told you this was a silly and probably obvious question. But I'm stuck. Please help. Thanks. :)
-Gryphon.
In reply to Silly Regex question... by gryphon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |