Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A (non) reg-ex question

by mickeyn (Priest)
on Mar 20, 2006 at 14:10 UTC ( #537949=note: print w/ replies, xml ) Need Help??


in reply to A (non) reg-ex question

how about:

$str =~ /(0+)(1+)/; $is0n1n = length($1)<=>length($2); # 0 if match

Enjoy,
Mickey


Comment on Re: A (non) reg-ex question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-11-23 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (131 votes), past polls