[LA.pm] Custom extension to regex operator (??

Ranga Nathan RNathan at baxglobal.com
Sun Aug 7 22:39:09 PDT 2005


  I use (?? to create drop in regex. However now there is a need to 
actually execute some code and return a regex pattern. The postponed regex 
operator (?? does not interpolate and does not seem to run any code other 
than take an expression.

Anyway to override this? I am looking at the possibility of creating a 
custom regex module for this.

This is for a project that requires parsing strings that are deeply nested 
to varying degree sometimes delimiters can be used. Mostly the level of 
nesting is identified by a numeric value. Anyone remembering COBOL would 
be able to recall OCCURS DEPENDING ON in COBOL structure definitions. I am 
taking it to the extreme level to create a generic script.

Any experience / suggestion would be appreciated.
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services; 
BAX Global Inc. Irvine-California
Tel: 714-442-7591   Fax: 714-442-2840
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/losangeles-pm/attachments/20050808/8fe185bf/attachment.html


More information about the Losangeles-pm mailing list