Regex Replace in ABAP for replacing multiple characters occurring multiple times? -
this string c: programming fun, not abap. statement have written single character
replace occurrences of regex '\m' in c '@'.
works fine, how replace other single characters using same statement.
for example: need replace 'm', 'i' using 1 single replace statement. how write this, replace occurrences of regex '\m\p' in c '@'.
not working
ps: new abap learning.
this not abap related 'problem' question of how use regex :-)
try this:
data: lv_string type string. lv_string = 'replace m, p , s in string @'. replace occurrences of regex '(m|p|s)' in lv_string '@'. write lv_string.
ciao!
Comments
Post a Comment