Hi Tim,

Try using a negative character class like [^\d\n\r] instead of \D.

HTH

Jean Jourdain

On Sunday, December 12, 2021 at 6:21:10 PM UTC+1 Tim A wrote:

> Simple task to strip out all non-digits in telephone numbers. \D works but 
> also matches newline at the end of every line. Is there a way to 'turn off' 
> the newline match?
>
> I can do a 
> Find: [-() ]   which will match the usual possible non-digit characters 
> which I can replace with nothing, but figure I am missing something simple 
> and worth knowing here.
>
> Thanks.
>

-- 
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 here. 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/80befb98-1764-4d0f-b2e6-bc9bd1fabb43n%40googlegroups.com.

Reply via email to