|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Do nothing? or Do something important in a very obscure way?by blakem (Monsignor) |
| on Aug 23, 2002 at 10:49 UTC ( #192299=note: print w/ replies, xml ) | Need Help?? |
|
/x?/ means match x zero or one times, but prefer 1...
/x??/ means match x zero or one times, but prefer 0... For instance: The notation is a little confusing because the two question marks in a row mean different things. /x?/ is really just syntatic sugar for /x{0,1}/. The second question mark turns on min matching. When you look at it this way, the difference between /x{0,1}/ and /x{0,1}?/ should be more clear. -Blake
In Section
Meditations
|
|
||||||||||||||||||||||||