Simple regular expression question for basic find and replace

I want to do a simple find and replace using a regular expression.

This is what I have in the outline document:

P1

• Text

Text is a child of P1 and to access it I thought I could put this in the find:

Find P1\r\n\tText

This doesn’t work. How can I address this simple relationship? I have lots of documents with similar structures where I would like to replace a placeholder word like ‘Text’ with information dependent on what the parent is.

I think this must be a single answer but it beats me. Any help, very much appreciated.

2 Likes

Come on all you GREP masters, should be simple enough for you guys and it would be a massive help to me too