in reply to strip text from a string
In this case, you should read Using character classes in perlretut. In particular, you are interested in the set of all characters that are not apostrophes. This is usually expressed as [^']. You will also need to use Quantifiers to specify a character count: in this case *, which gives you zero or more occurrences.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strip text from a string
by KalaMonkey (Initiate) on Sep 11, 2014 at 15:20 UTC | |
by kennethk (Abbot) on Sep 11, 2014 at 17:48 UTC | |
by KalaMonkey (Initiate) on Sep 12, 2014 at 09:44 UTC | |
by GrandFather (Saint) on Sep 11, 2014 at 21:11 UTC |