Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAP C_ABAPD_2507 Exam - Topic 2 Question 25 Discussion

Given the following data definitions:DATA: text TYPE string VALUE 'Date 1972-04-01 is in ISO format'.DATA: regex TYPE string VALUE '[0-9]{4}(-[0-9]{2})(2}'.In which of the following functions can you use regular expressions?(Select 3 correct answers)
B) match( val = text pcre = regex ) and D) matches( val = text pcre = regex ) and E) find( val = text pcre = regex )
A) reverse( val = text pcre = regex )
C) condense( val = text pcre = regex )

SAP C_ABAPD_2507 Exam - Topic 2 Question 25 Discussion

Actual exam question for SAP's C_ABAPD_2507 exam
Question #: 25
Topic #: 2
[All C_ABAPD_2507 Questions]

Given the following data definitions:

DATA: text TYPE string VALUE 'Date 1972-04-01 is in ISO format'.

DATA: regex TYPE string VALUE '[0-9]{4}(-[0-9]{2})(2}'.

In which of the following functions can you use regular expressions?

(Select 3 correct answers)

Show Suggested Answer Hide Answer
Suggested Answer: B, D, E

In ABAP Cloud, string functions that support regular expressions (PCRE) include:

match( ) returns the first substring matching the regex.

matches( ) checks if the whole string matches the regex.

find( ) finds a substring based on regex pattern.

Functions such as reverse( ) and condense( ) do not support regex patterns; they are purely string manipulation utilities.

Verified Study Guide Reference: ABAP Keyword Documentation -- String Functions with Regular Expressions.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel