Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regex and getpwent()...

by bobione (Pilgrim)
on May 28, 2001 at 05:10 UTC ( #83670=note: print w/replies, xml ) Need Help??


in reply to regex and getpwent()...

I am not sure that m// match empty ("") value. It matches everything.

BobiOne KenoBi ;)

Replies are listed 'Best First'.
Re: Re: regex and getpwent()...
by japhy (Canon) on May 28, 2001 at 05:25 UTC
    It only matches everything until you've matched anything. (Think that's cryptic?)
    for (qw( a b403 c<<>_# d84930 e89293->><{}W )) { print if //; } "foo" =~ /foo/; for (qw( a b403 c<<>_# d84930 e89293->><{}W )) { print if //; }


    japhy -- Perl and Regex Hacker
      Ouch! That's quite nasty looking...
      Looks like I really need to get my head around regular expressions a bit better! 8)

      Thanks for the help.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-10-17 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (99 votes). Check out past polls.

    Notices?