Yes Thomas, if i chose to open the source and recode the parser, i could walk down that road.
However my situation is more like (as pointed out by eyepopslikeamosquito above) the Perl Cookbok 6.18 :
"...
So you need to write a single pattern that matches either of two diffe
+rent patterns (the "or" case) or both of two patterns (the "and" case
+) or that reverses the sense of the match ("not").
This situation arises often in configuration files, web forms, or comm
+and-line arguments.
..."
So with that i do consider my problem solved, -- even though as it's written in the recipe :
...It's not a pretty picture, and in a regular program, you'd almost n
+ever do this"...
Sic!
Best Regards / Allan Dystrup
"...this very place is the Land of Lotuses..." / Hakuin Ekaku Zenji
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.