Git Product home page Git Product logo

srl-python's Introduction

SRL-Python

Python Implementation of Simple Regex.

https://travis-ci.org/SimpleRegex/SRL-Python.svg?branch=master

Installation

You can download and install the latest version of this software from the Python package index (PyPI) as below:

$ pip install srl
โœจ๐Ÿฐโœจ

SRL-Python supports:

  • Python 2.7
  • Python 3.3
  • Python 3.4
  • Python 3.5
  • Pypy

Usage

Class SRL takes a Simple Regex Language string as input. SRL instance shares exactly same API with re.RegexObject:

>>> from srl import SRL
>>> srl = SRL('digit exactly 3 times')
>>> srl.pattern
'[0-9]{3}'
>>> matched = srl.search('123')
>>> matched.group()
'123'

Test

SRL-Python uses nose as test runner.:

$ pip install nose
$ nosetests -c ./nose.cfg

License

SRL is published under the MIT license. See LICENSE for more information.

Contribution

Like this project? Want to contribute? Awesome! Feel free to open some pull requests or just open an issue.

Authors

Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself below.

srl-python's People

Contributors

soasme avatar karimgeiger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.