Jaap has asked for the wisdom of the Perl Monks concerning the following question:
$string = q[Jon 'Maddog' Orwant]; $string = q{Jon 'Maddog' Orwant}; $string = q(Jon 'Maddog' Orwant); $string = q<Jon 'Maddog' Orwant>;
But it's so ugly. Would anybody have a cleaner solution?m/(q[qxwr]?)(\[.*?\]|\{.*?\}|\(.*?\)|\<.*?\>)/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [regex] matching Perl quoted strings
by Abigail-II (Bishop) on Mar 16, 2004 at 12:38 UTC | |
by Jaap (Curate) on Mar 16, 2004 at 15:52 UTC | |
by davido (Cardinal) on Mar 16, 2004 at 16:27 UTC | |
by Abigail-II (Bishop) on Mar 16, 2004 at 16:49 UTC | |
|
Re: [regex] matching Perl quoted strings
by chip (Curate) on Mar 16, 2004 at 15:09 UTC | |
|
Re: [regex] matching Perl quoted strings
by zby (Vicar) on Mar 16, 2004 at 12:41 UTC | |
by Abigail-II (Bishop) on Mar 16, 2004 at 13:00 UTC | |
|
Re: [regex] matching Perl quoted strings
by dawn (Novice) on Mar 16, 2004 at 15:03 UTC |