Re: More Complicated RegEx Replace

2012-07-02 Thread Peter Boughton
> This is the replace statement a regex guru gave me > to wrap a variable found in a string in a span tag. Not sure you can call them a "guru" when the only piece of regex used is a pair of parentheses which are entirely unnecessary. *shrug* Here's a simpler version that does exactly the same

Re: More Complicated RegEx Replace

2012-06-28 Thread Matt Quackenbush
I disagree with that statement. I don't have time at the moment to play with it, but you'll want to look at negative lookahead (e.g. ?!). http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0a38f-7ffb.html#WSc3ff6d0ea77859461172e0811cbec0a38f-7fee HTH On Thu,

Re: More Complicated RegEx Replace

2012-06-28 Thread Claude Schnéegans
I doubt you can achieve this just using regex. Regex are great for doing things, but not for "not doing". ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffus

More Complicated RegEx Replace

2012-06-28 Thread Robert Harrison
This is the replace statement a regex guru gave me to wrap a variable found in a string in a span tag. # REReplaceNoCase(answer, '(#search_string#)', '\1', 'all')# It works great, but the variable contains html and it's also replacing stuff inside of HTML tags. Examp