Reply To: Add character with GREP

#75934
Aaron Troia
Participant

Andrea,

that’s totally possible with GREP, try this. I’m using a capturing groups which is represented by the parenthesis which says “group this content” and I can later call that group in the replace field by referring to it with a back reference which is a GREP variable which always starts with the dollar sign and number (1-9). So below I’m capturing all the text in the paragraph, then adding the double quotes to either side of the back reference.

Find: ^(.+?)$
Replace: ~{$1~}

Let me know if that works for you and/or if it needs tweaking

This article was last modified on June 10, 2015

Comments (0)

Loading comments...