Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://537949]
help
Chatterbox?
[SuicideJunkie]: email tests, eh? I've gotten dinged for "you can't block this sender as spam, they're internal"
[Corion]: Heh - somebody in our marketing departement thought it was a great idea to use the alerting tool for company-wide outages to announce some new feature ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2017-05-24 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?