Get Example source ABAP code based on a different SAP table
ARTICLE
String Functions, count, find, and match The example demonstrates the string functions count, find, and match.
ABAP_SOURCE_CODE ABAP_EXEC
ABAP_DESCRIPTION In the text field text all the occurrences are searched for (using count and find) that correspond to a regular expression. When a search is successful, the subfield found is read out and displayed with the help of the match function. Instead of using the count function, you could also use an unlimited DO loop that is left using EXIT if the result of find has the value -1.