Ansicht
Dokumentation
ABENPREDICATE_FUNCTIONS_STRINGS1 - PREDICATE FUNCTIONS STRINGS1
Vendor Master (General Section) BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
matches - Predicate Function
Syntax
... matches( val = text regex = regex [case = case]
[off = off] [len = len] ) ...
Effect
The predicate function matches compares a search range of the argument text, defined using off and len, with the regular expression specified in regex. A corresponding truth value is returned. The return value is true when the whole search range matches the regular expression. The case is taken into account by default for the comparison but this can be overridden using the case parameter.
The argument text is a character-like expression position in which the closing spaces of character-like arguments with fixed length are not taken into account. regex is a character-like expression position. For case, off, and len the same applies as for the search functions.
Notes
- The match function match can be used to return a subfield that matches a regular expression.
- Even if the regular expression in regex has the correct syntax, it may be too complex for executing the function, which leads to a treatable exception of class CX_SY_REGEX_TOO_COMPLEX. See Exceptions in Regular Expressions.
Example
See Predicate Function, matches
PERFORM Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2401 Date: 20240328 Time: 100636 sap01-206 ( 34 ms )