Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Lobsters
@lobsters@mastodon.social  ·  activity timestamp 3 days ago

Use “\A...\z”, not “^...$” with Python regular expressions https://lobste.rs/s/rxowxr #python
https://sethmlarson.dev/use-backslash-A-and-z-not-%5E-and-%24-with-python-regular-expressions

sethmlarson.dev

Use “\A...\z”, not “^...$” with Python regular expressions

Two years ago I discovered a potential foot-gun with the Python standard library “re” module. I blogged about this behavior, and turns out that I wasn't only one who didn't know this: The article w...
⁂
More from
Seth Larson
  • Copy link
  • Flag this post
  • Block
Log in

Bonfire Dinteg Labs

This is a bonfire demo instance for testing purposes. This is not a production site. There are no backups for now. Data, including profiles may be wiped without notice. No service or other guarantees expressed or implied.

Bonfire Dinteg Labs: About · Code of conduct · Privacy ·
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login