SAP REGEX POSIX - Syntax SPECIALS



Get Example source ABAP code based on a different SAP table
  



ABAP_POSIX_REGEX - Special Characters (obsolete)
The following tables summarize the special characters in POSIX regular expressions.
ITOC

Escape Character Special CharacterMeaning Escape character for special characters



Latest notes:

The string function escape can be used to prefix all special characters for regular expressions with their escape character.
NON_V5_HINTS
ABAP_HINT_END

Special Characters for Single Character Strings Special 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:]]Designation for all alphanumeric characters in a value set [[:alpha:]]Designation for all letters in a value set [[:blank:]]Designation for blank characters and horizontal tabulators in a value set [[:cntrl:]]Designation for all control characters in a value set [[:digit:]]Designation for all digits in a value set [[:graph:]]Designation for all displayable characters apart from blank characters and horizontal tabulators in a value set [[:lower:]]Designation for all lowercase letters in a value set [[:print:]]Designation for all displayable characters in a value set [[:punct:]]Designation for all punctuation marks in a value set [[:space:]]Designation for all blank characters, tabulators, carriage returns and line feeds in a value set [[:unicode:]]Designation for all Unicode characters in a value set with a code greater than 255 [[:upper:]]Designation for all uppercase letters in a value set [[:word:]]Designation for all alphanumeric characters and _ in a value set [[:xdigit:]]Designation for all hexadecimal digits in a value set a f n r t vVarious platform-dependent control characters [..]Reserved for future enhancements [==]Reserved for future enhancements
ABAP_MORE_INFO

Special Characters for Character String Patterns Special CharacterMeaning {n}Chaining of n single characters {n,m}Chaining of at least n and a maximum of m single characters {n,m}?Reserved for future enhancements ?One single character or no single characters *Chaining of any number of single characters including 'no characters' *?Reserved for future enhancements +Chaining of any number of single characters excluding 'no characters' +?Reserved for future enhancements |Combination 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 Patterns Special 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 ZThe same as for z. Line feeds at the end of the character string, however, are ignored < Start of a word >End of a word bStart 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 Texts Special CharacterMeaning $0, $ Placeholder for the entire occurrence $1, $2, $3...Placeholder for the registration of subgroups $`Placeholder for the text in front of the occurrence $'Placeholder for the text after the occurrence
ABAP_MORE_INFO