in reply to Re: Regular expression question
in thread Regular expression question

my ($table_data) = $input =~ /\[table\](.*?)\[\/table\]/s;
You need the "s"-modifier as the the table spans several lines.

Replies are listed 'Best First'.
Re^3: Regular expression question
by Benedict White (Novice) on Sep 30, 2011 at 08:18 UTC
    Many thanks for that, the /s turned out to be as important as the (.*?). It works well now.