a* , are used to search for empty character strings. This is possible
when searching for the first occurrence or all occurrences. The relevant
empty substrings are found before the first character, between all
characters, and after the last character of the search ranges. A range
of this type is always successful.
A regular expression can have correct syntax, but be too complex for
the execution of the statement FIND , which raises a handleable
exception of the class
CX_SY_REGEX_TOO_COMPLEX . Refer to
Exceptions in Regular Expressions .
Example ABAP Coding The following search finds the substring 'ababb'
from offset 3 or higher. Using the "leftmost-longest" rule, the
other matching substring 'babboo' from offset 4 or higher is not
found.
DATA: moff TYPE i,
mlen TYPE i.
FIND REGEX 'a.|[ab]+|b.*' IN 'oooababboo'
MATCH OFFSET moff
MATCH LENGTH mlen.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved