Boberts has asked for the wisdom of the Perl Monks concerning the following question:
Hey I'm looking for a regex (at least I think what is most likely a regex) to help clean up some text
The text has to consist of (i) only consist of ASCII letters, ASCII digits, apostrophes, hyphens and underscores; (ii) start with a letter or start with an apostrophe followed by a letter, (iii) do not contain a sequence of two or more apostrophes or hyphens, and (iv) end with (a) a letter, (b) a digit, or (c) an apostrophe preceded by the letter s, should be considered to be words.
Any help is appreciated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Looking for a Regex
by AnomalousMonk (Archbishop) on Mar 03, 2019 at 21:08 UTC | |
Re: Looking for a Regex
by 1nickt (Canon) on Mar 03, 2019 at 15:59 UTC | |
Re: Looking for a Regex
by davies (Prior) on Mar 03, 2019 at 18:50 UTC | |
Re: Looking for a Regex
by BrowserUk (Patriarch) on Mar 03, 2019 at 20:50 UTC | |
by 1nickt (Canon) on Mar 03, 2019 at 23:56 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2019 at 10:40 UTC | |
by 1nickt (Canon) on Mar 04, 2019 at 12:18 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2019 at 13:22 UTC | |
| |
Re: Looking for a Regex
by Laurent_R (Canon) on Mar 04, 2019 at 09:05 UTC |
Back to
Seekers of Perl Wisdom