in reply to Re: Regex keeps looping on itself :/
in thread Regex keeps looping on itself :/

Thanks - that never gets any values though :/
my $post_message = $DB->table('Post')->select( ['post_message'], { p +ost_id => $_[0] } )->fetchrow; print TESTOUT qq|testing the output of post_message - $post_message +\n\n |; $post_message =~ s{\[\[([^]]+)\]\]}{ # process($1) print TESTOUT qq|FOO: "$1"|; }esg
TIA Andy

Replies are listed 'Best First'.
Re^3: Regex keeps looping on itself :/
by ikegami (Patriarch) on Jun 17, 2009 at 15:53 UTC

    It gets replaced with the result of the expression. In this case, it gets replaced with 1, the result of print. Remove print TESTOUT