Ansicht
Dokumentation

ABENREGEX_ABEXA - REGEX ABEXA

ABENREGEX_ABEXA - REGEX ABEXA

TXBHW - Original Tax Base Amount in Local Currency   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- Search for a Regular Expression

The example demonstrates how to search for a regular expression.

Source Code

Execute

Description

The example allows a text, a regular expression, and the syntax of the regular expression to be entered. The program 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.

Note

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






RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1115 Date: 20240423 Time: 204731     sap01-206 ( 22 ms )