Copy link to clipboard
Copied
In a doc, I have to modify series of roman numbering written
"(i)"
"(ii)"
"(iii)"
"(iv)"
"(v)"
When I grep, within a paragraph style
\(\i\) , I do find "(i)"
\(\i\i\) , I do find "(ii)"
\(\i\i\i\) , I do find "(iii)"
but when I grep
\(\i\v\) , I DO NOT FIND "(iv)"
\(\v\) , I DO NOT FIND "(v)"
why ?
Because you are escaping everything. You only have to escape characters that are (1) meaningful in a GREP expression, and (2) you want to find literally.
\( matches a literal ( because the '(' means something in a GREP expression. \i matches 'i' because \i means nothing special (and escaping non-special characters does nothing to the original), but \v is the GREP code for a vertical tab.
Just use this
\(iv\)
and it will work. To find any roman number up to 8, you can use this:
\([iv]+\)
(although it w
...Copy link to clipboard
Copied
Because you are escaping everything. You only have to escape characters that are (1) meaningful in a GREP expression, and (2) you want to find literally.
\( matches a literal ( because the '(' means something in a GREP expression. \i matches 'i' because \i means nothing special (and escaping non-special characters does nothing to the original), but \v is the GREP code for a vertical tab.
Just use this
\(iv\)
and it will work. To find any roman number up to 8, you can use this:
\([iv]+\)
(although it will also match invalid roman numerals – if these may occur in your text, don't do a Change All).
Copy link to clipboard
Copied
Thanks a lot.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now