in reply to conditional input field separator?

Untested:
my ($content) = $str =~ /body=(?|"([^"]*)"|'([^']*)')/;

Replies are listed 'Best First'.
Re^2: conditional input field separator?
by Colin_R (Initiate) on Feb 10, 2012 at 13:14 UTC

    Thank you JavaFan!