Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Nesting regexen

by Daedalus207 (Novice)
on Jul 11, 2005 at 08:05 UTC ( [id://473864]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://473864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found