You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/resources/regular-expressions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,9 @@ Here are two post code examples: **3072AP** and **7500 AH**.
33
33
These are the criteria:
34
34
35
35
* The first character is a digit in the range 1 to 9
36
-
* The second, third and fourth characters are digits in the range 0 to 9
36
+
* The second, third, and fourth characters are digits in the range 0 to 9
37
37
* The last two characters are letters, as expressed by the last two subexpression [A-Za-z], which indicate that the last two characters should be in the range A-Z or the range a-z
38
-
*Between the digits and the letters there can be a space, as expressed by the subexpression which consists of a space and a question mark; the question mark indicates that the space is optional
38
+
*There can be a space between the digits and the letters, as expressed by the subexpression which consists of a space and a question mark; the question mark indicates that the space is optional
39
39
{{% /alert %}}
40
40
41
41
The following sections give a summary of regular expressions that can be used in Mendix. This description also applies to regular expression strings used in functions such as *isMatch()*.
@@ -52,7 +52,7 @@ A regular expression can contain the following types of subexpressions:
52
52
53
53
{{% alert color="info" %}}These forms can be mixed: `[abcx-z]` matches "*a*", "*b*", "*c*", "*x*", "*y*", or "*z*", and is equivalent to `[a-cx-z]`. The `-` character is treated as a literal character if it is the last or the first character within the brackets, or if it is escaped with a backslash.{{% /alert %}}
54
54
55
-
*`[^ ]` – matches a single character that is NOT contained within the brackets, for example:
55
+
*`[^ ]` – matches a single character that is not contained within the brackets, for example:
56
56
*`[^abc]` matches any character other than "a", "b", or "c"
57
57
*`[^a-z]` matches any single character that is not a lowercase letter from "a" to "z"
58
58
@@ -68,10 +68,10 @@ A regular expression can contain the following types of subexpressions:
68
68
* A literal character – this is a character that does not have a special meaning in the regular expression language and it matches itself; this is effectively any character except `\[](){}^-$?*+|.`, for example:
69
69
* The *`space`* in the Dutch post code example is a literal character that just matches itself
70
70
71
-
{{% alert color="info" %}}If you need to match one of the characters which is not a literal, prefix it with a backslash.{{% /alert %}}
71
+
{{% alert color="info" %}}If you need to match one of the characters that is not a literal, prefix it with a backslash.{{% /alert %}}
72
72
73
73
*`\w` – a word: a letter, digit, or underscore; `\w` is an abbreviation for `[A-Za-z0-9_]`
74
-
*`\d` – a digit" an abbreviation for `[0-9]`
74
+
*`\d` – a digit; an abbreviation for `[0-9]`
75
75
76
76
### Quantifiers
77
77
@@ -81,10 +81,10 @@ The following quantifiers can be used:
81
81
82
82
| Quantifier | Description |
83
83
| --- | --- |
84
-
| ? | The preceding sub-expression should occur not or once. |
85
-
| * | The preceding sub-expression occurs any number of times. |
86
-
| + | The preceding sub-expression should occur once or more. |
87
-
|| No quantifier means that the preceding sub-expression should occur exactly once. |
84
+
| ? | The preceding subexpression should occur not or once. |
85
+
| * | The preceding subexpression occurs any number of times. |
86
+
| + | The preceding subexpression should occur once or more. |
87
+
|| No quantifier means that the preceding subexpression should occur exactly once. |
0 commit comments