SAP REGEX ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_REGEX - Search for a Regular Expression
The example demonstrates how to search for a regular expression.

ABAP_SOURCE_CODE
DEMO CL_DEMO_FIND_REGEX

ABAP_DESCRIPTION
The example allows a text, a regular expression, and the syntax of the regular expression to be entered. The class searches the text line text for the first match of the search pattern defined in the regular expression and highlights this section in the result display. The search is case-sensitive. For searching the statement FIND is used, while for marking the result, the statement REPLACE is used where the operator $0 serves as a placeholder for the match in the replacement text.



Latest notes:

NON_V5_HINTS
You can use the demonstration program DEMO_REGEX to test regular expressions before using them in programs.
ABAP_HINT_END