Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
XP is just a number
 
PerlMonks  

Re: Backtracking problem with .*(?!bar)

by vbrtrmn (Pilgrim)
on Sep 24, 2003 at 09:34 UTC ( [id://293842]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Backtracking problem with .*(?!bar)

I have found people don't like to use the .*, I try to use it as infrequently as possible. Maybe one of these would help you out

.{0,} - Match 0 or more times. .?? - Match 0 or 1 times (as few as possible).

--
paul

Replies are listed 'Best First'.
Re: Re: Backtracking problem with .*(?!bar)
by perlguy (Deacon) on Sep 24, 2003 at 10:21 UTC
    Could I get an example from you on when using the ?? quantifier would be appropriate? I find this a strange example to show as an alternative to the infamous dot star.
•Re: Re: Backtracking problem with .*(?!bar)
by merlyn (Sage) on Sep 24, 2003 at 16:04 UTC
      Except that .* is better for golf!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://293842]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.