Skip to content

Commit 02356dc

Browse files
committed
Proof Regular Expressions
1 parent 8044c55 commit 02356dc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

content/en/docs/refguide/modeling/resources/regular-expressions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Here are two post code examples: **3072AP** and **7500 AH**.
3333
These are the criteria:
3434

3535
* 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
3737
* 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
3939
{{% /alert %}}
4040

4141
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:
5252

5353
{{% 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 %}}
5454

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:
5656
* `[^abc]` matches any character other than "a", "b", or "c"
5757
* `[^a-z]` matches any single character that is not a lowercase letter from "a" to "z"
5858

@@ -68,10 +68,10 @@ A regular expression can contain the following types of subexpressions:
6868
* 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:
6969
* The *`space`* in the Dutch post code example is a literal character that just matches itself
7070

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 %}}
7272

7373
* `\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]`
7575

7676
### Quantifiers
7777

@@ -81,10 +81,10 @@ The following quantifiers can be used:
8181

8282
| Quantifier | Description |
8383
| --- | --- |
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. |
8888

8989
## Read More
9090

0 commit comments

Comments
 (0)