Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Using `x` flag with `re` shorthand
- // Meta-chars like \d can be escaped using single slash.
- // Plugin should specify `useRe` option.
- re`/
- # A regular expression for date.
- (?<year>\d{4})- # year part of a date
- (?<month>\d{2})- # month part of a date
- (?<day>\d{2}) # day part of a date
- /x`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement