House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

REReplace to avoid HTML elements

Author:
Aaron Rouse
11/07/2008 12:04 PM

The \b actually did not work, it put the link within the first span element but maybe was how I tested it.  I tried:  "(?![</]sub>)(\b)(sub)(\b)" as well as  "(?![</]sub>)\b(sub)\b" > > That's the \W bits you're using - they're wrong; you want a > > zero-width word boundary, not a non-word character. > > > > Use \b(#Variables.Word#)\b and you wont need to do the workaround. > > Thanks Peter... I'd never used word boundaries... so of course, they > don't occur to me when I go to write a regex. :) I'll have to remember > that in the future. > > > > -- > s. isaac dealey  ^  new epoch >  isn't it time for a change? >     ph: 781.769.0723 > > http://onTap.riaforge.org/blog > > > >


Search cf-talk

February 04, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29