Reply To: Changing formatting between marks/codes

Home Page / Forums / General InDesign Topics (CLOSED) / Changing formatting between marks/codes / Reply To: Changing formatting between marks/codes

#69825
Anonymous
Inactive

(?<=) is a positive lookbehind – which means it will look behind what you’re searching for but it won’t include it in the result

Inserting the text you want it to look behind would be @8:<I>

Therefore it’s

(?<=@8:<I>)

Adding .+? after this means it will select all the next lot of text zero or 1 time only

<if you only had .+ it would keep on searching right to the end>

(?=) is a positive lookahead – it will look ahead but won’t include it in the search results.

<adding in <$> wouldn’t work because $ is GREP code for finding at the end of a paragraph>

Therefore we need to “escape the $” and we do this by adding a “\”

<\$> makes it search for a $ in the text.

Resulting in

(?<=@8:<I>).+?(?=<\$>)

This article was last modified on August 1, 2014

Comments (0)

Loading comments...