Copy link to clipboard
Copied
p\{\h[xvxi] +\}
I am attempting to search and remove the following texts
{v1-10} or
{v2-003} the max number of digits are 2 and 3 with a v preceding.
Copy link to clipboard
Copied
You are not targetting the digits. and you are targetting "one-or-more" spaces *before* the closing brace. Also not sure what the "p" at the start is for. Try this:
\{v\d-\d+\}\s
- Mark
EDIT: the \s targets a trailing space, which is often good to do when removing text, but it might not be right for your case. Also looking at your grep I wonder if the "v" is sometimes "x" or "i"? If so, replace "v" in my grep with "[vxi]" which will match 1 of any of those characters.
Copy link to clipboard
Copied
More important than this, what's it like in the future???
Copy link to clipboard
Copied
\{\h?v\d{1,2}-\d{1,3}\}\h
Copy link to clipboard
Copied
Hi @noob1212121 ,
If you use this pattern in script then you should use double slash instead of single slash.
\\{v\\d-\\d{2,3}\\}
If you find using indesign palette then you should use:
\{v\d-\d{2,3}\}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now