On 12/8/19 at 4:52 AM, [email protected] (jgill) wrote:

I need to clean up some OCR documents to find characters that are NOT [A-Z|a-z|0-9|:]

What is the BBEdit GREP syntax for an invered search (-v) ?

[^A-Za-z0-9:]

The above character class includes the characters you want, and the '^' at the start negates them. So the above will match ONE character that is not any of an upper or lower case a to z or a colon. You could search on that and replace with nothing.

This is standard PCRE (Perl Compatible Regular Expression) syntax, not unique to BBEdit.

HTH

--

  - Bruce

_bruce__van_allen__santa_cruz__ca_

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-CB580780EAA04BE28F08C57767C77500%40Forest.local.

Reply via email to