![]() |
|
Just another Perl shrine | |
PerlMonks |
Regex: matching any Number then a hyphenby Anonymous Monk |
on Nov 27, 2022 at 12:50 UTC ( #11148404=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have lines of data, all begin with a number. For lines which have a " - " or " – " after the number, but before the next piece of text I'd like to replace this with a ". ". example data
desired output
Back to
Seekers of Perl Wisdom
|
|