Reply To: Stripping non-alphabetic characters out of a field

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Stripping non-alphabetic characters out of a field Reply To: Stripping non-alphabetic characters out of a field

#56184
Traci Zee
Participant

As a corollary:

How do I substitute ” for all characters out of a string that are > 0x7e?

I’ve tried: regsub -all {[\x7e-\xff]} $str {“} outstr

and it errors with:

couldn’t compile regular expression pattern: invalid [] range

   while executing

“regsub -all {[\x7e-\xff]} $str {“} outstr”

I can’t get the right syntax for the hex values in the range.

TIA!

Traci Zee

770.844.9242

Emdeon, Inc.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10