diff --git a/docs/labs/regex0.js b/docs/labs/regex0.js index 7fe122f3..1dbb6f55 100644 --- a/docs/labs/regex0.js +++ b/docs/labs/regex0.js @@ -30,6 +30,13 @@ info = [ "C" ], ], }, + { + present: String.raw`\(`, + text: "Parentheses are not necessary or clarifying in this regex. Prefer simpler regex expressions.", + examples: [ + [ "(cat)" ], + ], + }, { absent: "c", text: "If you are searching for \"cat\" you need to look for a \"c\"", @@ -93,6 +100,14 @@ info = [ null, "A+B" ], ], }, + { + present: String.raw`\(`, + index: 1, + text: "Parentheses are not necessary or clarifying in this regex. Prefer simpler regex expressions.", + examples: [ + [ null, "(A+B+)" ], + ], + }, ], expected: [ 'cat',