On Sun, Apr 19, 2009 at 10:56 PM, John S.
And now I want to obtain the same but I do not want to obtain bike,
This will start to get tricky as it becomes important to know what the
rules really are.
Are you wanting to avoid car surrounded by an anchor tag, or car
surrounded by any tag.
car lorem ipusum
will pose a problem as it's half surrounded by a
so to satisfy your test case, the following works by making sure that
car is not followed by a ‘<’ which will work on both cases mentioned
This checks that car is surrounded by a word-break but is not followed
by a ‘<’
If, in Ruby 1.9, I do the following:
I am now checking that car is surrounded by a word-break and is not
preceded by a ‘>’ and not followed by a ‘<’ however this pattern will
not replace “
car lorem” with “
“I have never let my schooling interfere with my education” - Mark Twain