Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: stupid question about regexp - not matching a word

by december (Pilgrim)
on Jul 15, 2002 at 22:15 UTC ( [id://181944]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found