Please see Writeup Formatting Tips (You should not have <code> tags around your whole node.)
With many phrases, I'd probably do something like this:
my @phrases = ( 'pail of water', 'pale horse' ); my $phrases_re = join '|', map { quotemeta } @phrases; foreach my $sentence ( @sentence_source ) { $sentence =~ s/($phrases_re)/\#$1\#/g; }
Thanks to JadeNB for pointing out that I'd swapped "pale" and "pail".
In reply to Re: phrase marking
by kyle
in thread phrase marking
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |