diff --git a/files/en-us/web/javascript/guide/regular_expressions/quantifiers/index.md b/files/en-us/web/javascript/guide/regular_expressions/quantifiers/index.md index a12b2711e089cdf..39408939587d8fc 100644 --- a/files/en-us/web/javascript/guide/regular_expressions/quantifiers/index.md +++ b/files/en-us/web/javascript/guide/regular_expressions/quantifiers/index.md @@ -71,7 +71,7 @@ Quantifiers indicate numbers of characters or expressions to match.

- Where "n" is a positive integer, matches exactly "n" occurrences of + Where "n" is a non-negative integer, matches exactly "n" occurrences of the preceding item "x". For example, /a{2}/ doesn't match the "a" in "candy", but it matches all of the "a"'s in "caandy", and the first two "a"'s in "caaandy". @@ -84,7 +84,7 @@ Quantifiers indicate numbers of characters or expressions to match.

- Where "n" is a positive integer, matches at least "n" occurrences of + Where "n" is a non-negative integer, matches at least "n" occurrences of the preceding item "x". For example, /a{2,}/ doesn't match the "a" in "candy", but matches all of the a's in "caandy" and in "caaaaaaandy". @@ -97,9 +97,8 @@ Quantifiers indicate numbers of characters or expressions to match.

- Where "n" is 0 or a positive integer, "m" is a positive integer, and - m > n, matches at least "n" and at most "m" occurrences of the preceding + Where "n" and "m" are non-negative integers and m >= n, + matches at least "n" and at most "m" occurrences of the preceding item "x". For example, /a{1,3}/ matches nothing in "cndy", the "a" in "candy", the two "a"'s in "caandy", and the first three "a"'s in "caaaaaaandy". Notice that when matching "caaaaaaandy",