Introduction to ABAP regular expressions

ABAP supports extended regular expressions (ERE), which can support the following keywords

FIND
REPLACE

It can also be used as a variable of the following function (Built-in function)

count, count_...
contains_...
find, find_...
match
matches
replace
substring, substring_...

The following classes also support the use of regular expressions in object-oriented

CL_ABAP_REGEX
CL_ABAP_MATCHER

Remarks

正则表达式如果太复杂,会触发异常 CX_SY_REGEX_TOO_COMPLEX. 
可以查看标准程序 DEMO_REGEX 和DEMO_REGEX_TOY用来测试正则表达式的查找和替换功能

Guess you like

Origin blog.csdn.net/u012232542/article/details/103967734