Skip to main content

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


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)

Uploaded Source

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

Hashes for rere-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f2deb0c6ef7d3b539c94bdceed8b2f1d292a5ac6420e26cb77d3a8e947417cde
MD5 31f1714aecc94c9a30ad574281459469
BLAKE2b-256 1d52193011bf39bc7dccf3ca02db6aa7474f389044d7b1a0cafb039cc34933a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page