diff --git a/docs/labs/regex1.html b/docs/labs/regex1.html index f0e1284f..2cf972e7 100644 --- a/docs/labs/regex1.html +++ b/docs/labs/regex1.html @@ -95,6 +95,12 @@ want the text inside the slashes (the pattern itself). examples: - - "/" +- present: |- + ["'`] + text: In this exercise we only want the regular expression pattern itself. + There is no need to use any kind of quote mark. + examples: + - - "'" - absent: |- ^\^ text: For input validation, start with '^' to indicate a full match. @@ -308,7 +314,8 @@

Task Information

symbol. Unfortunately, different platforms use different regex symbols for performing a complete match to an input. -The following table shows what you should prepend and append for +The following table shows a summarized version of +what you should prepend and append for many different platforms (for their default regex system).

@@ -347,13 +354,18 @@

Task Information

^(ab|de)\Z” or “\A(ab|de)\Z” (note that it's not quite the same thing). +

+More information is available in the OpenSSF guide +Correctly Using Regular Expressions for Secure Input Validation. +

Interactive Lab ()

Please create regular expression (regex) patterns that meet the criteria below. -

Part 1

+

Part 1

Create a regular expression, for use in ECMAScript (JavaScript), that only matches the letters "Y" or "N". @@ -370,7 +382,7 @@

Part 1

-

Part 2

+

Part 2

Create a regular expression, for use in ECMAScript (JavaScript), that only matches one or more uppercase Latin letters (A through Z). @@ -388,7 +400,7 @@

Part 2

-

Part 3

+

Part 3

Create a regular expression, for use in ECMAScript (JavaScript), that only matches the words "true" or "false". @@ -406,7 +418,7 @@

Part 3

-

Part 4

+

Part 4

Create a regular expression that only matches one or more uppercase Latin letters (A through Z). @@ -425,7 +437,7 @@

Part 4

-

Part 5

+

Part 5

Create a regular expression that only matches one Latin letter (A through Z), followed by a