Copy link to clipboard
Copied
Hi all,
I am looking for a GREP for:
Search for: <?tul=1> and anything upto <?tul>
Replace with character style 'underline'
Many thanks.
(<\?tul=1>)(.+)(<\?tul>|$)
(^/) The Jedi
Hi @OriginationCC27875182tucs, try the following:
Find what:
<\?tul=1>([^<]+)<\?tul>
Change to:
$1
Change Format:
I think that will work even if there are carriage returns in between. See how it goes.
- Mark
Copy link to clipboard
Copied
Some lines don't have <?tul> so would need to apply until a paragraph return?
Copy link to clipboard
Copied
(<\?tul=1>)(.+)(<\?tul>|$)
(^/) The Jedi
Copy link to clipboard
Copied
"Some lines don't have <?tul> so would need to apply until a paragraph return?"
Could you show a real piece of text?
(^/)
Copy link to clipboard
Copied
Hi @OriginationCC27875182tucs, try the following:
Find what:
<\?tul=1>([^<]+)<\?tul>
Change to:
$1
Change Format:
I think that will work even if there are carriage returns in between. See how it goes.
- Mark
Copy link to clipboard
Copied
That worked! Thank you so much.
Copy link to clipboard
Copied
A Nested style would work better and less confusing.
You can type in the characters in the place it says Words - replace it for the text you want.
Copy link to clipboard
Copied
Eugene, just by curiosity, could you explain more?
(\^)