mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 16:38:47 +00:00
30. 正则表达式匹配
https://www.acwing.com/problem/content/submission/code_detail/15205980/
This commit is contained in:
parent
537ff4a159
commit
e181b698de
6
AcWing/30/30.js
Normal file
6
AcWing/30/30.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* @param {string} s
|
||||||
|
* @param {string} p
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
const isMatch = (s, p) => new RegExp(`^${p}$`).test(s);
|
BIN
AcWing/30/data/16.ans
(Stored with Git LFS)
Normal file
BIN
AcWing/30/data/16.ans
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
AcWing/30/data/16.in
(Stored with Git LFS)
Normal file
BIN
AcWing/30/data/16.in
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user