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.
In reply to Re: strip text from a string
by kennethk
in thread strip text from a string
by KalaMonkey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |