Think about Loose Coupling | |
PerlMonks |
Re: Problem with regexp to matchby LanX (Saint) |
on Oct 14, 2021 at 15:31 UTC ( [id://11137516]=note: print w/replies, xml ) | Need Help?? |
One of the obvious problems is, that you want to use slashes inside your regex without escaping them. / --> \/ If I where you I'd change delimiter and try m{REGEX} instead of m/REGEX/ .
Cheers Rolf
updatethere where more issues, but this works for me ( perl -dE0 starts the debugger )
updateIf the snippets don't always start with \d\d change it to \d+ If I where you I'd consider spliting on , and then / . Then applying a simple regex, should be more stable and maintainable.
In Section
Seekers of Perl Wisdom
|
|