fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Paul McGuire

Pyparsing 3.2.2 cleans up a formerly internal-only utility method make_compressed_re(), and makes it part of the public API. Given a list of strings, it generates a regex to match those strings and only those (so no cheating like ".*").

Here are before/after expressions for matching chemical symbols.

I should have tagged that with when I first posted it - doesn't look like adding a tag in an edit accomplishes much.

I hope to release pyparsing 3.2.2 this weekend.

This is not an exhaustive optimizer by any means - it does a poor job with the days of the week in English, even though they all end in "day".