I just want to go from dIonly to the first workset(( including some text and then two parenthesis at the end ))Using your original code this works for me - note that I took out the colon (:) from dIonly.
foreach $str (@reversedarray) { if ($str =~ /\bdIonly\b.*?\bworkset\b\(\(([^)]*)/ ) { print "content of workset before dIonly: $1\n"; } }
In reply to Re: regex - problem with the loop I believe or maybe the regex itself ?
by tangent
in thread regex - problem with the loop I believe or maybe the regex itself ?
by trummelbummel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |