From 2087de10608705fc934864da19a5417114a63c4d Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 9 Aug 2013 07:31:16 +1000 Subject: [PATCH] Add note that non-greedy regular expressions are not supported to function help --- resources/function_help/regexp_match | 2 +- resources/function_help/regexp_replace | 2 +- resources/function_help/regexp_substr | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/function_help/regexp_match b/resources/function_help/regexp_match index e325463676c..6699dbdf966 100644 --- a/resources/function_help/regexp_match +++ b/resources/function_help/regexp_match @@ -7,7 +7,7 @@ Returns true if any part of a string matches the supplied regular expression.

Arguments

string → is string. The string to test against the regular expression.
- regex → is string. The regular expression to test against. Backslash characters must be double escaped (eg "\\s" to match a white space character).
+ regex → is string. The regular expression to test against. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.

Example

diff --git a/resources/function_help/regexp_replace b/resources/function_help/regexp_replace index 5a67d69b69f..b80285118ec 100644 --- a/resources/function_help/regexp_replace +++ b/resources/function_help/regexp_replace @@ -7,7 +7,7 @@ Returns a string with the supplied regular expression replaced.

Arguments

string → is string. The start string.
- regex → is string. The regular expression to replace. Backslash characters must be double escaped (eg "\\s" to match a white space character).
+ regex → is string. The regular expression to replace. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.
after → is string. The string that will replace any matching occurences of the supplied regular expression. Captured groups can be inserted into the replacement string using \\1, \\2, etc.

Example

diff --git a/resources/function_help/regexp_substr b/resources/function_help/regexp_substr index a147022963e..9be15e72ec1 100644 --- a/resources/function_help/regexp_substr +++ b/resources/function_help/regexp_substr @@ -7,7 +7,7 @@ Returns the portion of a string which matches a supplied regular expression.

Arguments

string → is string. The input string.
- regex → is string. The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character).
+ regex → is string. The regular expression to match against. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.

Example