Please don't top post... On Dec 18, 2007 6:41 PM, Corin Lawson <[EMAIL PROTECTED]> wrote: > Hi ab, > > Can you not simply count the number of quotes mod 2? >
No, you can't just count the number of quotes. An even number of quotes doesn't mean they're all double quotes. Consider something like q|a'b'c''d'e'f|. sometimes, it's just easier to chain together a couple of expressions: unless ( /'/ and ( /'''/ or /[^']'[^']/ ) ) {do something} HTH, -- jay -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org values of β will give rise to dom!