Just another Perl shrine | |
PerlMonks |
Re: Breaking symmetry with a regexby BillKSmith (Monsignor) |
on Apr 14, 2021 at 14:52 UTC ( [id://11131278]=note: print w/replies, xml ) | Need Help?? |
Here is a regex solution. I have provided several test cases which are intended to help you specify your real requirements. (The 'description' field tells what is special about each string.) I have assumed that by 'number', you mean 'unsigned integer'.
OUTPUT,
I encourage you to modify this solution and/or list of test cases as your requirements evolve.
Bill
In Section
Seekers of Perl Wisdom
|
|