hi trummelbummel,
..but I am reversing it for the above reasons to:
dIonly c ....................................workset((.......)) and I need the items in the workset as well...
Maybe something like this could help:
You might have to look into the documentations mentioned by AnomalousMonk.use warnings; use strict; my $node = 'workset((ab;joiret;garg)) c wasdobao; erhgahufdgah; c workset((adsghl +ia) c aghaoeriarg;oi c aasdfgohaerg c workset(empty) c ah;sorguiaerg +c aoi;hgruio;ghaer c playA c dIonly '; my $modified = join q{ } => reverse split /\s+/ => $node; # you could print modified to see the reversed string if ( my @dat = $modified =~ /\(\(?(.+?)\)/g ) { print "@dat\n"; # prints empty adsghlia ab;joiret;garg }
In reply to Re: regex - problem with the loop I believe or maybe the regex itself ?
by 2teez
in thread regex - problem with the loop I believe or maybe the regex itself ?
by trummelbummel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |