0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 15:48:48 +00:00

30. 正则表达式匹配

https://www.acwing.com/problem/content/submission/code_detail/15205980/
This commit is contained in:
Baoshuo Ren 2022-07-06 08:10:47 +08:00
parent 537ff4a159
commit e181b698de
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
3 changed files with 12 additions and 0 deletions

6
AcWing/30/30.js Normal file
View 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

Binary file not shown.

BIN
AcWing/30/data/16.in (Stored with Git LFS) Normal file

Binary file not shown.