Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Regular-expressions/ABAP/regular-expressions.abap
Normal file
11
Task/Regular-expressions/ABAP/regular-expressions.abap
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
DATA: text TYPE string VALUE 'This is a Test'.
|
||||
|
||||
FIND FIRST OCCURRENCE OF REGEX 'is' IN text.
|
||||
IF sy-subrc = 0.
|
||||
cl_demo_output=>write( 'Regex matched' ).
|
||||
ENDIF.
|
||||
|
||||
REPLACE ALL OCCURRENCES OF REGEX '[t|T]est' IN text WITH 'Regex'.
|
||||
|
||||
cl_demo_output=>write( text ).
|
||||
cl_demo_output=>display( ).
|
||||
Loading…
Add table
Add a link
Reference in a new issue