Forum Moderators: coopster
I'm in need of a RegEx pattern. Basically, what I need it to do is match post-HTML output text so I can insert spaces into long words. What this means is that I want to match individual words, be they wrapped in tags or not. Let me give a tangible example. Say you have this string:
Hello there <a href="http://website/" title="website">gentlemen</a> how are <b>you today?</b> I would like the expression to match "hello", "there", "gentlemen", "how", "are", "you" and "today?". All the ones I've tried have matched tag parameters and so on (like 'href="http://website/"'). I'm wondering if it's as easy as somehow negating an accurate HTML tag matching expression.
Thanks if you can help!
[edited by: hRook at 6:39 pm (utc) on Nov. 1, 2008]