REPLACE ALL OCCURRENCES OF 'A' IN lv_string WITH 'B'. (將lv_string 中所有A 換為B )
IF sy-subrc = 0.
ENDIF.
REPLACE ALL OCCURRENCES OF 'ABC' IN lv_string WITH space. (將lv_string 中 所有 ABC 換為 空 )
IF sy-subrc = 0.
ENDIF.
(REGEX 表示使用正則 \d 表示單個字符 \w+ 表示多個字符 )
REPLACE ALL OCCURRENCES OF REGEX ' rownumber="\d"' IN lv_string WITH ''.
REPLACE ALL OCCURRENCES OF REGEX 'rownumber=(")(\w+)(")' IN lv_xml WITH ''.
IF sy-subrc = 0.
ENDIF.
