diff --git a/docs/labs/regex0.html b/docs/labs/regex0.html index 07414103..b72c9784 100644 --- a/docs/labs/regex0.html +++ b/docs/labs/regex0.html @@ -12,21 +12,6 @@ - - - - - - - - - - - -
diff --git a/docs/labs/regex0.js b/docs/labs/regex0.js index 9bef0547..2d68b5dc 100644 --- a/docs/labs/regex0.js +++ b/docs/labs/regex0.js @@ -48,6 +48,23 @@ info = text: "Use \"B+\" to indicate \"one or more B\". You could also write \"BB*\"." } ], + expected: [ + 'cat', + 'A+BB*' + ], + correct: [ + 'cat', + // Spaces are removed by the preprocessor for this lab. + String.raw`A(\+|A\*) B(\+|B\*)` + ], + successes: [ + [ 'cat', 'A+B+' ], + [ 'cat', 'AA*BB*' ], + ], + failures: [ + [ 'Cat', 'A+B+' ], + [ 'cat', 'A*B*' ], + ], preprocessing: [ [ "\\s*",