Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Problem with negative lookahead at end of string

by delirium (Chaplain)
on Jun 21, 2004 at 15:25 UTC ( [id://368474]=note: print w/replies, xml ) Need Help??


in reply to Problem with negative lookahead at end of string

Despite a processing slowdown, I prefer the readability of splitting criteria like this up into multiple expressions:

/^chars/ && /this/ && !/that/ && !/whatever$/

Replies are listed 'Best First'.
Re^2: Problem with negative lookahead at end of string
by runrig (Abbot) on Jun 21, 2004 at 17:40 UTC
    Despite a processing slowdown...

    It depends on the patterns and the string, but it's often faster (and in this case it is faster) to split up the matches into multiple regexes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-03-28 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found