Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

RE: Probably silly regex question / not so silly regex question

by BlaisePascal (Monk)
on Aug 01, 2000 at 23:20 UTC ( [id://25552]=note: print w/replies, xml ) Need Help??


in reply to Probably silly regex question / not so silly regex question

I'm gonna think on the several parts of "question 1", but "the other question" is easy... The regex /.*c/ will match the longest prefix that ends in c. So if fed "acrobatic cockatoos can fly", it would match "acrobatic cockatoos c". The regex /[^c]*c/ would match the first prefix that ends in c, or "ac". As far as /.*?c/ goes... I think that is roughly equivilant to /[^c]*c/, but I'm not positive.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-24 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found