Metadata-Version: 1.1
Name: simex
Version: 0.2.0
Summary: Ultra-simple human readable DSL for matching text.
Home-page: https://github.com/crdoconnor/simex
Author: Colm O'Connor
Author-email: colm.oconnor.github@gmail.com
License: MIT
Description: SimEx
        =====
        
        SimEx is a substitute for regular expressions that lets you write non-developer
        readable/writeable matching expressions.
        
        It is sometimes, but not always, more suitable than writing regular expressions
        directly.
        
        To install::
        
          $ pip install simex
        
        To use:
        
        .. code-block:: python
        
          >>> from simex import simex
          >>> LINK_EXPRESSION = """<a href="{{ url }}">{{ anything }}</a>"""
          >>> exp = simex(LINK_EXPRESSION, regexes={"url": r"(.*?)", "anything": r".*?"})
          >>> exp.match("""<a href="http://www.cnn.com">CNN</a>""") is not None
          True
        
          >>> exp = simex(LINK_EXPRESSION, regexes={"url": r"(.*?)"})
          >>> exp.match("""<a href="http://www.cnn.com">{{ anything }}</a>""") is not None
          True
        
          >>> exp = simex(LINK_EXPRESSION, regexes={"url": r"(.*?)"})
          >>> exp.search("""Pre text <a href="http://x.com">{{ anything }}</a> post text""") is not None
          True
Keywords: regex text matching
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Classifier: Operating System :: Unix
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
