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

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.