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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -