Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re3: Do nothing? or Do something important in a very obscure way?

by blakem (Monsignor)
on Aug 23, 2002 at 11:16 UTC ( [id://192303]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Do nothing? or Do something important in a very obscure way?
in thread Do nothing? or Do something important in a very obscure way?

Ah, I see now.... /x??:/ will behave exactly like /x{0}/
In english /x??:/ would read something like this:

Match 'x' zero or one times, prefer 0 over 1, lock in the first value that allows this atom to match (i.e. don't backtrack).

Since the 0 will always cause the atom to match, the engine will never be allowed to try the 1.

I know thats not the best description.... hope it helps.

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found