Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Date format not matched #29

Closed
gjois opened this issue Jun 4, 2019 · 2 comments
Closed

Simple Date format not matched #29

gjois opened this issue Jun 4, 2019 · 2 comments

Comments

@gjois
Copy link

gjois commented Jun 4, 2019

Please check this site for example: https://regex101.com/r/ZqMTdp/1
the same input to your sample program is not giving the match. Am I missing something?
I'm really a newbie in regexp.

@kokke
Copy link
Owner

kokke commented Jun 4, 2019

Hi @gjois and thanks for the question

Currently, quantifier-operators are unsupported, and your regular expression is using those operators.

In this regular expression: \d{4}-\d{2}-\d{2} <-- the quantifiers are {4}, {2} and {2}.

You should be able to achieve the same result with this pattern: \d\d\d\d-\d\d-\d\d.

@kokke
Copy link
Owner

kokke commented Jun 4, 2019

This fork has support for quantifiers: #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants