Skip to content

Instantly share code, notes, and snippets.

@DmitrySoshnikov
Created April 17, 2017 20:02
Show Gist options
  • Save DmitrySoshnikov/a6359d6ea65d0e9f46193972cf66b514 to your computer and use it in GitHub Desktop.
Save DmitrySoshnikov/a6359d6ea65d0e9f46193972cf66b514 to your computer and use it in GitHub Desktop.
regexp-tree-x
/
# 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
// Is translated into:
/(\d{4})-(\d{2})-(\d{2})/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment