regex redone
Project description
from rere import *
money_regex = Exactly(‘$’) + Digit*2 + (Exactly(‘.’) + Digit*2).zero_or_one
regex.match(‘$23.95’) # ==> True
Isn’t this better than regex.compile(’\$\d\d(.\d\d)?’)?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rere-0.1.0.tar.gz
(1.6 kB
view details)
File details
Details for the file rere-0.1.0.tar.gz.
File metadata
- Download URL: rere-0.1.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2deb0c6ef7d3b539c94bdceed8b2f1d292a5ac6420e26cb77d3a8e947417cde
|
|
| MD5 |
31f1714aecc94c9a30ad574281459469
|
|
| BLAKE2b-256 |
1d52193011bf39bc7dccf3ca02db6aa7474f389044d7b1a0cafb039cc34933a6
|