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 output1234 - Foo 56778 – Bar 9999. Baz
1234. Foo 56778. Bar 9999. Baz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex: matching any Number then a hyphen
by 1nickt (Canon) on Nov 27, 2022 at 15:42 UTC | |
Re: Regex: matching any Number then a hyphen
by Anonymous Monk on Nov 27, 2022 at 13:32 UTC | |
|
Back to
Seekers of Perl Wisdom