Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/labs/regex0.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down Expand Up @@ -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',
Expand Down