in reply to Re: Regex to match between [ref] and [/ref]
in thread Regex to match between [ref] and [/ref]

Thanks - this seems to work perfectly :)

$message =~ s{\[ref\](.*?)\[/ref\]}{add_sup_note2($1)}ge;

Cheers

Andy