Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: regexp question

by Abigail-II (Bishop)
on Aug 19, 2002 at 16:13 UTC ( #191223=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: regexp question
in thread regexp question

By not being smart and wanting it in a single regexp. Use your foreach loop and a counter. Increment the counter for each match found, and compare after the loop whether the counter equals the size of the array. Or just bail out whenever there isn't a match, depending a bit on what exactly you want to do.


Comment on Re: regexp question
Replies are listed 'Best First'.
Re: Re: regexp question
by kidd (Curate) on Aug 19, 2002 at 16:39 UTC

    I did it...thanks for your help...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-11-30 15:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (774 votes), past polls