in reply to Re: A regex that does this, but not that?
in thread A regex that does this, but not that?

But, if $var contained "testament", for example, that would fail.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: A regex that does this, but not that?
by BrowserUk (Patriarch) on Nov 15, 2003 at 01:11 UTC

    Yep!. Needs an extra \b.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    Hooray!
    Wanted!