in reply to Re: within pattern manipulation
in thread within pattern manipulation

Thanks jwkrahn for the reply. However, it is not producing the desired output. The output I am getting is:

A and B %regulate% each other in cells

Replies are listed 'Best First'.
Re^3: within pattern manipulation
by ikegami (Patriarch) on Sep 18, 2009 at 14:55 UTC
    By using "x", he changed the meaning of the spaces in your pattern. Fixed:
    $sentence =~ s{($phrases)}{ ( my $string = $1 ) =~ tr/ /_/; "%$string%" }ieg;
      Very nice. Thank you.