in reply to Re: Problem with capturing all matches with regex
in thread Problem with capturing all matches with regex
Too bad, I thought, I could do it in one swipe.my $equation = '979x + 87y - 8723z = 274320'; my @parts = ($equation =~ /(.*?)([xyz])/ig); push(@parts, ($equation =~ /\G(.*)=(.*)/));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem with capturing all matches with regex
by AnomalousMonk (Archbishop) on Oct 12, 2016 at 16:25 UTC | |
by igoryonya (Pilgrim) on Oct 13, 2016 at 01:25 UTC |