Get Example source ABAP code based on a different SAP table
ARTICLE
Special Characters in Regular Expressions The following tables summarize the special characters in regular expressions: ITOC
Escape characterSpecial characterMeaning Escape character for special characters
Note With the escape character string, all special characters for regular expressions can be prefixed by their escape character.
Special Characters for Single Character StringsSpecial characterMeaning .Placeholder for any single character CPlaceholder for any single character dPlaceholder for any digit DPlaceholder for any non-digit character lPlaceholder for any lowercase letter LPlaceholder for any non-lowercase letter sPlaceholder for a blank character SPlaceholder for a non-blank character uPlaceholder for any uppercase letter UPlaceholder for any non-uppercase letter wPlaceholder for any alphanumeric character including _ WPlaceholder for any non-alphanumeric character except for _ [ ]Definition of a value set for single characters [^ ]Negation of a value set for single characters [ - ]Definition of a range in a value set for single characters [[:alnum:]]Name for all alphanumeric characters in a value set [[:alpha:]]Name for all letters in a value set [[:blank:]]Name for blank characters and horizontal tabulators in a value set [[:cntrl:]]Name for all control characters in a value set [[:digit:]]Name for all digits in a value set [[:graph:]]Name for all characters (apart from blank characters) that can be displayed and horizontal tabulators in a value set [[:lower:]]Name for all lowercase letters in a value set [[:print:]]Name for all characters in a value set that can be displayed [[:punct:]]Name for all punctuation marks in a value set [[:space:]]Name for all blank characters, tabulators, and carriage feeds in a value set [[:unicode:]]Name for all Unicode characters in a value set with a code larger than 255 [[:upper:]]Name for all uppercase letters in a value set [[:word:]]Name for all alphanumeric characters in a value set, and also _ [[:xdigit:]]Name for all hexadecimal digits in a value set a f
vVarious platform-specific control characters [..]Reserved for future enhancements ] [==]Reserved for future enhancements ABAP_MORE_INFO
Special Characters for Character String PatternsSpecial characterMeaning {n}Concatenation of n single characters {n,m}Concatenation of at least n and a maximum of m single characters {n,m}?Reserved for future enhancements ?One or no single characters *Concatenation of any number of single characters including 'no characters' gierige Variante *?Reserved for future enhancements +Concatenation of any number of single characters excluding 'no characters' gierige Variante +?Reserved for future enhancements |Linking of two alternative expressions ( )Definition of subgroups with registration (?: )Definition of subgroups without registration 1, 2, 3 ...Placeholder for the registration of subgroups Q ... EDefinition of a string of literal characters (? ... )Reserved for future enhancements ABAP_MORE_INFO
Special Characters for Search StringsSpecial characterMeaning ^Anchor character for the start of a line AAnchor character for the start of a character string $Anchor character for the end of a line zAnchor character for the end of a character string The same as for z. However, line breaks at the end of the character string are ignored <(><<)>Start of a word >End of a word Start or end of a word BSpace between characters within a word (?= )Preview condition (?! )Negated preview condition (?> )Cut operator ABAP_MORE_INFO
Special Characters for Replacement TextsSpecial characterMeaning $0, $<(> <)>Placeholder for the whole found location $1, $2, $3...Placeholder for the registration of subgroups $`Placeholder for the text before the found location $'Placeholder for the text after the found location ABAP_MORE_INFO