Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Debugging regular expressions

by wog (Curate)
on Jun 21, 2001 at 01:13 UTC ( #90193=note: print w/replies, xml ) Need Help??

in reply to Debugging regular expressions

* I'd really like to discover there's a way to follow what's happening at "core level" when Perl try to satisfy a RE.

use re 'debug';

... The re pragma can give you a hint (and possibly help you understand why you regexp doesn't do what you think it does). What it does output is not necessairly easy to understand.

update: To address what bunsunsl said: this feature has been avialable since perl 5.005 and tests reveal it does not require the -DDEBUGGING to have been used when perl was compiled.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-10-01 13:38 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (126 votes). Check out past polls.