Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: validate variable-length lines in one regex?

by sundialsvc4 (Abbot)
on Jul 07, 2015 at 00:58 UTC ( [id://1133483]=note: print w/replies, xml ) Need Help??


in reply to Re^2: validate variable-length lines in one regex?
in thread validate variable-length lines in one regex?

I, too, am interested.   I agree, based on this further explanation, that my original suggestion of subs could become unmanageable in the use-case that you describe.   I graciously withdraw my suggestion . . .

The notion of building a Regex, as BrowserUK originally suggests below and as poj took and ran-with a little later on, is probably the right balance between readability and flexibility.   (All now liberally sprinkled with up-vote pixie-dust...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found