Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: ^\s not equal \S?

by davido (Cardinal)
on Dec 04, 2003 at 09:58 UTC ( [id://312160]=note: print w/replies, xml ) Need Help??


in reply to Re: ^\s not equal \S?
in thread ^\s not equal \S?

Now that's a neat trick. After getting up off the floor following fainting at the very sight of it, I'll have to read perlrun again to understand how you did it. It's high time I dig into perldebug too, I see.

Thanks for the motivation / lesson. :)


Dave

Replies are listed 'Best First'.
Re: ^\s not equal \S?
by Abigail-II (Bishop) on Dec 04, 2003 at 10:10 UTC
    I find '-Dr' far more useful than 'YAPE::Regex::Explain'. The latter just parrots back what it was given, but then in English. '-Dr' shows how perl compiles it. As shown in the thread 'YAPE::Regex::Explain' doesn't notice the overlap between \S and \W, not even that '*' is mentioned twice. '-Dr' shows what's really going on, although the output is sometimes hard to grog.

    And '-Dr' really shines at runtime, showing how Perl actually matches a regexp.

    Abigail

Log In?
Username:
Password:

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

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

    No recent polls found