in reply to Nesting regexen

I'm not sure exactly what you want for output, but the problem that you identified, having to do with $sub_args , seems to be associated with $quotelike. Try using
qr/(["'])($bareword)*(["'])/
instead of
qr/((['"]).+?\2)/
The output with that change is:
$f->readOnly( -name => $session{form}{cid}, -label => WebGUI::International::get(469,"WebGUIProfil +e", );
That way, the quoted portion is recognized as part of $subroutine.

Replies are listed 'Best First'.
Re^2: Nesting regexen
by colink (Novice) on Jul 11, 2005 at 20:13 UTC

    I see (after staring at your post for 20 minutes). The problem is with the backreference \2. It's only 2 when it isn't embedded inside another regex.

    Thank you very much!