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

Counting problem with multiplication #26

Closed
horvatha opened this issue Aug 28, 2017 · 0 comments
Closed

Counting problem with multiplication #26

horvatha opened this issue Aug 28, 2017 · 0 comments
Labels

Comments

@horvatha
Copy link

horvatha commented Aug 28, 2017

For this regular expression exrex.count gives less than the real value:

In [33]: re = r'(1[0-2]|0[1-9])(:[0-5]\d){2} (A|P)M'

In [34]: exrex.count(re)
Out[34]: 7224

In [35]: 12*60*60*2  # This should be the value (as many seconds in a day)
Out[35]: 86400

However for the part, I thought to be critical, it works well:

In [36]: re = r'(:[0-5]\d){2}'

In [37]: exrex.count(re)
Out[37]: 3600

Version 0.10.5

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

No branches or pull requests

2 participants