Ansicht
Dokumentation

ABENREGEX_MIGRATING_POSIX - REGEX MIGRATING POSIX

ABENREGEX_MIGRATING_POSIX - REGEX MIGRATING POSIX

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- Migrating from POSIX to PCRE

The ABAP Kernel of an AS ABAP implements two libraries for regular expressions:

Regular expressions in POSIX syntax are obsolete. Using regular expressions in POSIX syntax leads to a warning from syntax check that can be hidden by the pragma ##regex_posix. Therefore, it is recommended that regular expressions are migrated from POSIX to PCRE syntax or another regular expression syntax supported by ABAP.

The following table provides a general troubleshooting for migrating from POSIX to PCRE:

Symptom Possible Solutions
The PCRE library rejects the pattern (e.g. by giving a compiler error or raising an exception) Make sure to not use any features that are supported by POSIX but not by PCRE. Also pay close attention to the error message, which often contains useful information.
The pattern does not match what it should after migrating to PCRE Make sure that you have taken PCRE's extended mode into account by either explicitly encoding whitespaces or by disabling extended mode. Ensure that you have set the correct Unicode handling for your context.

The following topics provide detailed assistance for the migration from POSIX to PCRE.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2502 Date: 20240418 Time: 025646     sap01-206 ( 53 ms )