in reply to boundary reg expression

You don't need too, but it might simplify your regexp ;-)
s/\bbold\b/new/gi
should do it.

Replies are listed 'Best First'.
Re: Re: boundary reg expression
by Hofmator (Curate) on Jul 21, 2003 at 12:32 UTC
    rather s/\bold\b/new/gi, this typo is already in the original post ...

    And be aware that this changes: I'm doing fine. Old things are nice. to I'm doing fine. new things are nice.

    -- Hofmator

      of course s/\bold\b/new/gi. That's Why I wrote it.