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
[[: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
Peter's book is a great resource. I highly recommend it.
I will need to check it out!
The problem is that posix is truly too bad just knowing what it catches!
(^/) The Jedi