From d75f433ffd9123a0c7cae70c471a195469e710fe Mon Sep 17 00:00:00 2001 From: danrega <16720986+danrega@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:04:14 +0100 Subject: [PATCH] Update --- 28_Regular_Expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/28_Regular_Expressions.md b/28_Regular_Expressions.md index 0914dad..44d53cb 100644 --- a/28_Regular_Expressions.md +++ b/28_Regular_Expressions.md @@ -593,7 +593,7 @@ string_opt_set = replace( val = |abc\ndef\nghi| pcre = `(?m).\Z` with = `#` occ - Regular expressions with PCRE can be processed in normal or extended mode. - In extended mode, unescaped whitespaces in the pattern are ignored. - The extended mode is the default for ABAP statements and built-in functions, but you can disable it in the regex pattern with `(?-x)`. The `create_pcre` method of the `CL_ABAP_REGEX` class includes an `extended` parameter for this purpose. -- To handle whitespaces in regular expressions, escape it with `\ `, match it using `\s`, or enable extended mode with `(?-x)`. +- To handle whitespaces in regular expressions, escape it with `\ `, match it using `\s`, or disable extended mode with `(?-x)`. The following code snippet shows the extended mode enabled by default and then explicitly disabled in a PCRE regular expression.