Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: MUMPS Array Subscripts Parsing Via RegEx

by johngg (Canon)
on May 14, 2012 at 22:04 UTC ( [id://970522]=note: print w/replies, xml ) Need Help??


in reply to MUMPS Array Subscripts Parsing Via RegEx

I wonder if the Text::Balanced module would be helpful.

Cheers,

JohnGG

  • Comment on Re: MUMPS Array Subscripts Parsing Via RegEx

Replies are listed 'Best First'.
Re^2: MUMPS Array Subscripts Parsing Via RegEx
by Clovis_Sangrail (Beadle) on May 16, 2012 at 15:31 UTC

    At a cursory inspection it looks like this module is something that I'd use instead of Regular expressions. (Unless you can call a Perl Function from within a Regex. Can you do that? (OMG according to http://www.perlmonks.org/?node_id=832028 you can do just that. My head is going to explode!)). I'm not ready to give up on Regex's yet. I can decompose

    \(bunch_of_ugly_subscripts\)

    into

    \(uglysub,)*uglysub\)

    and then maybe I'd use variable substitition in the regex and create a separate regex variable that's an alternation for the different kinds of ugly subscripts:

    $UG = 'notsougly|uglywith"|uglywith\'|...';

    This would be updatable as I encounter different outrageous subscripts. Maybe I'd use calls to the Text::Balanced module functions in here?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-23 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found