skip to navigation
skip to content

simplere 1.0.5

Simpler, cleaner access to regular expressions. Globs too.

Latest Version: 1.2.11

A simplified interface to Python’s regular expression (re) string search that tries to eliminate steps and provide simpler access to results. As a bonus, also provides compatible way to access Unix glob searches.


Python regular expressions are powerful, but the language’s lack of an en passant (in passing) assignment requires a preparatory motion and then a test:

import re

match =, some_string)
if match:

With simplere, you can do it in fewer steps:

from simplere import *

if match /, some_string):
    print match[1]

That’s particularly valuable in complex search-and-manipulate code that requires multiple levels of searching along with pre-conditions, error checking, and post-match cleanup, formatting, and actions.

As a bonus, simplere also provides simple glob access.:

if 'globtastic' in Glob('glob*'):
    print "Yes! It is!"
    raise ValueError('OH YES IT IS!')

See Read the Docs for the full installation and usage documentation.

File Type Py Version Uploaded on Size
simplere-1.0.5.tar.gz (md5) Source 2013-09-13 5KB (md5) Source 2013-09-13 9KB