in reply to Re: stupid question about regexp - not matching a word
in thread stupid question about regexp - not matching a word

Yes, that's the solution. Is there no way without look-behind assertions? It seems like a common thing to do, 'not match' a expression of grouped letters (i.e. a word).

Thanks for your answer :)

  • Comment on Re: Re: stupid question about regexp - not matching a word

Replies are listed 'Best First'.
Re: stupid question about regexp - not matching a word
by Abigail-II (Bishop) on Jul 16, 2002 at 11:52 UTC
    Yes, there's the negative look-a-head assertion. ;-)
    /^(?!abc)\w+ something/

    But why are you afraid of look-behind assertions. Asking for a solution to X without using Y, if Y is a reasonable way of solving X should have an explaination of why Y shouldn't be used.

    Abigail