![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
You make a good point about splitting on a record separator within possibly malformed records. Based upon the OP's regex, it appears that the pattern's stable--with one space after the semi-colon. However, we can ask split to 'test' the format of the input, like this:
This will return the info the OP wants, whether there are spaces before or after the semi-colon, or not. And within a regex on the OP's data:
It was a good call to address this issue... In reply to Re^3: Regex Extraction Help
by Kenosis
|
|