Maybe it helps if you rephrase your problem?
Check whether a string contains characters that are not a quotation mark, then a single quotation mark, and then only characters that are not a quotation mark
If you look at your problem that way, you should convince yourself that it is equivalent to "string contains exactly one quotation mark", and it should also be fairly easy to translate that to a regular expression.
In reply to Re: Perl Matching
by Corion
in thread Perl Matching
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |