Copy link to clipboard
Copied
In GREP, is there a wildcard for any puncuation? I don't want to find letters, digits, or spaces, only punctuation. For example:
I wrote a GREP to identify errors with using a comma.
FIND WHAT: ([\u\l]|\d)( , | ,+ | ,+| ,|,|,+|,,+ |, |, , )([\u\l]|\d)
CHANGE TO: $1, $3
But I want to be able to find an error in any instance not just letters/digits for my $1 and $3
Any Punctuation
[[:punct:]] matches any punctuation: dots and commas, dashes and hyphens, braces, brackets, and parentheses, all quotation marks, etc. Like character equivalents, this wildcard must be entered as a list. It can be combined with other wildcards, literals, and markers. For example, use ~F[[:punct:]] to find footnote markers (~F) followed by any punctuation.
—from @Peter Kahrel's GREP in InDesign CS3 book
https://www.amazon.com/GREP-InDesign-InDesignSecrets-Peter-Kahrel/dp/0982508387
Copy link to clipboard
Copied
Any Punctuation
[[:punct:]] matches any punctuation: dots and commas, dashes and hyphens, braces, brackets, and parentheses, all quotation marks, etc. Like character equivalents, this wildcard must be entered as a list. It can be combined with other wildcards, literals, and markers. For example, use ~F[[:punct:]] to find footnote markers (~F) followed by any punctuation.
—from @Peter Kahrel's GREP in InDesign CS3 book
https://www.amazon.com/GREP-InDesign-InDesignSecrets-Peter-Kahrel/dp/0982508387
Copy link to clipboard
Copied
Thank you!!!
Copy link to clipboard
Copied
Peter's book is a great resource. I highly recommend it.
~Barb
Copy link to clipboard
Copied
I will need to check it out!
Copy link to clipboard
Copied
The problem is that posix is truly too bad just knowing what it catches!
(^/) The Jedi