Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Split on regex, don't match partial regex

by GrandFather (Sage)
on Sep 28, 2012 at 03:25 UTC ( #996104=note: print w/replies, xml ) Need Help??

in reply to Split on regex, don't match partial regex

* is greedy. Change it to *? to get a non-greedy match.

True laziness is hard work
  • Comment on Re: Split on regex, don't match partial regex

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996104]
[james28909]: it would be to much work just to get around renaming three subs lol
[james28909]: but you could put it all in one sub and return the same data type that was inputted. i could write a small example maybe
[Lady_Aleena]: Their uses are also vastly different.
[Lady_Aleena]: The first two make hashes and arrays from a file, the third returns data from a pre-existing hash.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-05-24 05:06 GMT
Find Nodes?
    Voting Booth?