Get Example source ABAP code based on a different SAP table
ABAP_REGEX - PCRE Regular Expression with Callouts The example demonstrates how to call an ABAP method from a PCRE regular expression.
ABAP_SOURCE_CODE DEMO CL_DEMO_PCRE_CALLOUT
ABAP_DESCRIPTION An object-oriented representation of a PCRE regular expression is created from class CL_ABAP_REGEX> >. The regular expression contains the special characters> (?C...) > for callouts. The first three callouts pass numeric data, the other two pass string data. A local class handle_regex> implements the interface IF_ABAP_MATCHER_CALLOUT>> and an instance of that class is set as the callout handler. When the regular expression is matched, the interface method CALLOUT> is called for each callout position and can access the passed parameter.