in reply to Re: Another Regular Expression Question
in thread Another Regular Expression Question

Should be [^\\] instead of \w.

The PerlMonk tr/// Advocate

Replies are listed 'Best First'.
Re: Re: Re: Another Regular Expression Question
by tilly (Archbishop) on Apr 08, 2004 at 16:25 UTC
    Depends on your assumptions. Might be better to do something like [^\\/:]. (Most people can leave out : though.)

    I should have been clearer about that.