Copy link to clipboard
Copied
How can I use grep to delete [pg xxx] where the xxx can be any length of a number or roman number (xi)? Any help would be greatly appreciated!
Thanks, Andras
Two thoughts:
- what version of Indesign? could be related to the known CC2019 Grep bug
see GREP search fails to find all the matching instances in long InDesign documents for the fix
- Looks like cross-references to me... I second Michel : screenshot with "Invisible Chars … and Zoom on "[pg 004]"!" please ^^
Copy link to clipboard
Copied
\[pg\h[\dvxi]+\]
Copy link to clipboard
Copied
Thanks, do I use this with the Find/replace [grep] function? Because it does not seem to work.....
Copy link to clipboard
Copied
Find this and Replace by nothing.
Copy link to clipboard
Copied
It won't find [pg xxx]
Copy link to clipboard
Copied
It will! …
Copy link to clipboard
Copied
… of course like here: "… thanks to remove [pg 666] in the text! …"
Copy link to clipboard
Copied
I don't know what this means.
Copy link to clipboard
Copied
It’s what we call an example! ...
Copy link to clipboard
Copied
It should. Make sure your GREP expression didn't get messed up when you copied and pasted. Michels solution works.
Copy link to clipboard
Copied
Andras:
Is this a text string, or are you searching for the page number variable (added via Type > Insert Special Character > Markers > Current Page number? Are your Roman numerals lowercase as you showed in your example above? Do they include other Roman numerals like l, c, d and m?
The string provided does match what you asked for: [pg ] with digits and the lowercase Roman numerals v, x and i.
~Barb
Copy link to clipboard
Copied
It does not work for me! The string is [pg xxx] as xxx=either numbers or lower case roman numerals. The find gets nothing! What am I doing wrong? All it is is the find and using grep.
Copy link to clipboard
Copied
Did you click the GREP tab? It worked fine for me.
~Barb



Copy link to clipboard
Copied
Also make sure that the scope of your search is set to something other than selection.
Copy link to clipboard
Copied
Show your Find/Change dialog — maybe we can spot the error.
Copy link to clipboard
Copied
YAY ! It worked on [pg 4xx] only, it won't find [pg 00x] at all...

Copy link to clipboard
Copied
+ Invisible Chars … and Zoom on "[pg 004]"!
Copy link to clipboard
Copied
Two thoughts:
- what version of Indesign? could be related to the known CC2019 Grep bug
see GREP search fails to find all the matching instances in long InDesign documents for the fix
- Looks like cross-references to me... I second Michel : screenshot with "Invisible Chars … and Zoom on "[pg 004]"!" please ^^
Copy link to clipboard
Copied
I have downloaded and found the CopyPlugin.app but it is a folder and I cannot run it. I hav e also looked at special characters but the file is clean!

Copy link to clipboard
Copied
noob1212121 wrote
I have downloaded and found the CopyPlugin.app but it is a folder and I cannot run it.
That is obviously the plugin for Mac OS X. You may not be aware of this, but you are working on Windows. Try again but make sure ti choose your own OS this time.
Copy link to clipboard
Copied
Jongware wrote
You may not be aware of this, but you are working on Windows.
![]()
Copy link to clipboard
Copied
IT WORKED! That was the bug! It worked for small sample files but not of the 3 volumes of Schopenhauer's The World As Will And Idea.
Thank you ALL who helped and made it possible not to tear my hair out with mundane editing...
I appreciate it wholeheartedly!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more