Open GleanCoder1116 opened 3 years ago
const reg = /(?<year>[0-9]{4})-(?<month>[0-9]{2})-(?<day>[0-9]{2})/; const match = reg.exec('2021-02-23');