An open API service indexing awesome lists of open source software.

https://github.com/iawia002/rec

a collection of some useful regular expressions.
https://github.com/iawia002/rec

python re

Last synced: 7 months ago
JSON representation

a collection of some useful regular expressions.

Awesome Lists containing this project

README

          

rec
===

.. image:: https://travis-ci.org/iawia002/rec.svg?branch=master
:alt: Build Status
:target: https://travis-ci.org/iawia002/rec

.. image:: https://codecov.io/gh/iawia002/rec/branch/master/graph/badge.svg
:target: https://codecov.io/gh/iawia002/rec

a collection of some useful regular expressions.

Hello, world
------------

Installation

.. code-block:: bash

pip install rec

Example

.. code-block:: python

In [1]: import rec

In [2]: rec.domain('http://bangumi.bilibili.com/anime/1089')
Out[2]: [u'bilibili.com']

In [3]: rec.domain('http://bangumi.bilibili.com/anime/1089', root=False)
Out[3]: ['bilibili']

Documentation
-------------

See `doc.md `_

🌙