http://qs321.pair.com?node_id=106079


in reply to Re: Re: another way to split with limit
in thread another way to split with limit

Ok so I guess your print statement here isn't related to your question and that you only want to match both side of `:'
You could do so like that:
($a, $b) = /(\w+):(\w+)/;
The regex at the right remembers the matches due to the parenthesis, and $a get the first value and $b the second.
Guillaume