Skip to main content
Participating Frequently
December 3, 2010
Question

Using Grep on multiline textframe

  • December 3, 2010
  • 1 reply
  • 647 views

Hello

I am using GREP to find text and replace in scripting it but It seems to not work on multiline text. Ex.:

My texte

My text2

I use ^.({8})(My text2){1}) to replace the 'My text2' but it doesnt work. Is there any way to make safe text subtituions with grep?

This topic has been closed for replies.

1 reply

Harbs.
Legend
December 3, 2010

If you have a return between the two lines, the GREP needs to take that into account... (i.e. \r)

Harbs

albanxAuthor
Participating Frequently
December 3, 2010

Any example?

I am having to many difficulties making a script that replace text with precision using GREP

Thanks