regpy

To Implement complex and simple regex in a simple way.


Keywords
python3, regex
License
MIT
Install
pip install regpy==1.0

Documentation

regpy

regpy is a python module which will help to implement complex and basic regex in a simple way.

Features

  • Grab all alphabetic data
  • Grab all valid mails id's.
  • Grab or extract valid postal code.

Installation

To install regpy use this pip command :

pip install regpy

Functions

text

To grab only alphabetic data you can use text function from regpy.

import regpy
regpy.text(data)

emails

To grab all valid mail id use emails function from regpy.

import regpy
regpy.emails(data)

ip

ip function to grab all ipv4 ip's from list.

import regpy
regpy.ip(data)

url

You can use this url function in web scraping to extract https url from data.

import regpy
regpy.url(data)