DATA: LV_STR0 TYPE STRING,
LV_STR1 TYPE STRING,
LV_STR2 TYPE STRING,
LV_STR3 TYPE STRING,
LV_STR4 TYPE STRING.
LV_STR0 = LV_STR1 = LV_STR2 = '不积跬步无以COF1至千里'.
" 只保留双字节字符
REPLACE ALL OCCURRENCES OF REGEX '[u4e00-u9fa5]' IN LV_STR1 WITH SPACE.
" 只保留单字节字符
REPLACE ALL OCCURRENCES OF REGEX '[^x00-xff]' IN LV_STR2 WITH SPACE.
" 除去字符串中所有的大写字母
REPLACE ALL OCCURRENCES OF REGEX '[A-Z]' IN LV_STR3 WITH SPACE.
" 除去字符串中所有的小写字母
REPLACE ALL OCCURRENCES OF REGEX '[a-z]' IN LV_STR4 WITH SPACE.