Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Limiting number of regex matches

by 2teez (Priest)
on Sep 25, 2012 at 23:42 UTC ( #995654=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Limiting number of regex matches
in thread Limiting number of regex matches

Yes, why use a regex to match for an obvious substring in this case, when a string could be splited into an array, a slice of that which got the required output printed?
Please, don't forget that the OP also asked among other things "..Is there no other way.."? Am simply showing, some other ways, in this case.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re^4: Limiting number of regex matches
Re^5: Limiting number of regex matches
by Anonymous Monk on Sep 25, 2012 at 23:51 UTC
    And I'm just pointing out the drawbacks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-07-24 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls