‎2009 Mar 28 7:37 PM
Dear experts.
Would anybody be able help me to write regular expression,
which replaces all digits in string by space.
‎2009 Mar 28 7:49 PM
Hi,
Check this code..
DATA : L_CHAR TYPE CHAR40 VALUE 'AVINASH 121 Name3ewr kjh23ohjo'.
WRITE :/ l_CHAR.
REPLACE ALL OCCURRENCES OF REGEX '1.|2.|3.|4.|5.|6.|7.|8.|9.|0' IN L_CHaR WITH space.
WRITE :/ l_CHAR.
‎2009 Mar 28 7:49 PM
Hi,
Check this code..
DATA : L_CHAR TYPE CHAR40 VALUE 'AVINASH 121 Name3ewr kjh23ohjo'.
WRITE :/ l_CHAR.
REPLACE ALL OCCURRENCES OF REGEX '1.|2.|3.|4.|5.|6.|7.|8.|9.|0' IN L_CHaR WITH space.
WRITE :/ l_CHAR.
‎2009 Mar 29 12:23 AM
even you can try the followign code
DATA: STR Type String value 'abc1234',
num_space(20) VALUE '1 2 3 4 5 6 7 8 9 0 '.
TRANSLATE STR USING num_space.