Browse and switch challenges
Regex Matcher
Perform full regular-expression matching with '.'
(any char) and '*'
(zero or more of the preceding element).
Important
- -The match must cover the entire string
s
. - -
'*'
applies to the preceding element only.
Signature
Constraints
- -
|s|, |p| ≤ 2e3
Examples
System prompt
0 tokens
Read-only
// Waiting for generated code…
// Your output will appear here as soon as the model returns JavaScript.
// It must define function regex10(…)
.
// Tip: write a prompt on the left and click "Generate code" .
0 tokens
Submission #1
0tokens(0/0)
Leaderboard
Loading leaderboard...