Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Why is this regex greedy?

by dpavlin (Friar)
on Jul 02, 2004 at 23:32 UTC ( [id://371530]=note: print w/replies, xml ) Need Help??


in reply to Why is this regex greedy?

If you are running perl 5.6 or newer (and you are, right?) you might be able to insert use re 'debug'; which will give you detailed output from regex engine. That's a good way to debug your regular expressions.

2share!2flame...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-06-13 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.