Wednesday, 14 November 2018

Replacing Extended ASCII codes in a string using replaceAll in Sterling Integrator

ob_SpecCharRepl = new("java.lang.String",#NAME1:5);
#NAME1:5 = ob_SpecCharRepl.replaceAll("[^^\a-zA-Z0-9]" , "");

Input:
Thè quïck brøwn føx jumps over the lãzy dôg.

Output:
Th quck brwn fx jumps over the lzy dg.