commonregex


Namecommonregex JSON
Version 1.5.4 PyPI version JSON
download
home_pagehttp://www.github.com/madisonmay/CommonRegex
SummaryFind all dates, times, emails, phone numbers, links, emails, ip addresses, prices, bitcoin address, and street addresses in a string.
upload_time
maintainerMadison May
docs_urlNone
authorMadison May
requires_pythonNone
licenseMIT
keywords regex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            CommonRegex
===========

Find all times, dates, links, phone numbers, emails, ip addresses, and prices in a string. 


Usage
------

    >>> from commonregex import CommonRegex
    >>> parsed_text = CommonRegex("John, please get that article on www.linkedin.com to me by 5:00PM 
                                   on Jan 9th 2012. 4:00 would be ideal, actually. If you have any 
                                   questions, You can reach me at (519)-236-2723 or get in touch with
                                   my associate at harold.smith@gmail.com")
    >>> parsed_text.times
    ['5:00PM', '4:00']
    >>> parsed_text.dates
    ['Jan 9th 2012']
    >>> parsed_text.links
    ['www.linkedin.com']
    >>> parsed_text.phones
    ['(519)-236-2727']
    >>> parsed_text.emails
    ['harold.smith@gmail.com']
    
Alternatively, you can generate a single CommonRegex instance and use it to parse multiple segments of text.

    >>> parser = CommonRegex()
    >>> parser.times("When are you free?  Do you want to meet up for coffee at 4:00?")
    ['4:00']
    
Please note that this module is currently English/US specific.

CommonRegex Ports:
----------------------------------------
[CommonRegexJS] (https://github.com/talyssonoc/CommonRegexJS)

[CommonRegexScala] (https://github.com/everpeace/CommonRegexScala)    

[CommonRegexJava] (https://github.com/talyssonoc/CommonRegexJava)
            

Raw data

            {
    "_id": null,
    "home_page": "http://www.github.com/madisonmay/CommonRegex",
    "name": "commonregex",
    "maintainer": "Madison May",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "madison.may@students.olin.edu",
    "keywords": "regex",
    "author": "Madison May",
    "author_email": "madison.may@students.olin.edu",
    "download_url": "https://github.com/madisonmay/CommonRegex",
    "platform": "Windows, Linux, Mac",
    "description": "CommonRegex\r\n===========\r\n\r\nFind all times, dates, links, phone numbers, emails, ip addresses, and prices in a string. \r\n\r\n\r\nUsage\r\n------\r\n\r\n    >>> from commonregex import CommonRegex\r\n    >>> parsed_text = CommonRegex(\"John, please get that article on www.linkedin.com to me by 5:00PM \r\n                                   on Jan 9th 2012. 4:00 would be ideal, actually. If you have any \r\n                                   questions, You can reach me at (519)-236-2723 or get in touch with\r\n                                   my associate at harold.smith@gmail.com\")\r\n    >>> parsed_text.times\r\n    ['5:00PM', '4:00']\r\n    >>> parsed_text.dates\r\n    ['Jan 9th 2012']\r\n    >>> parsed_text.links\r\n    ['www.linkedin.com']\r\n    >>> parsed_text.phones\r\n    ['(519)-236-2727']\r\n    >>> parsed_text.emails\r\n    ['harold.smith@gmail.com']\r\n    \r\nAlternatively, you can generate a single CommonRegex instance and use it to parse multiple segments of text.\r\n\r\n    >>> parser = CommonRegex()\r\n    >>> parser.times(\"When are you free?  Do you want to meet up for coffee at 4:00?\")\r\n    ['4:00']\r\n    \r\nPlease note that this module is currently English/US specific.\r\n\r\nCommonRegex Ports:\r\n----------------------------------------\r\n[CommonRegexJS] (https://github.com/talyssonoc/CommonRegexJS)\r\n\r\n[CommonRegexScala] (https://github.com/everpeace/CommonRegexScala)    \r\n\r\n[CommonRegexJava] (https://github.com/talyssonoc/CommonRegexJava)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Find all dates, times, emails, phone numbers, links, emails, ip addresses, prices, bitcoin address, and street addresses in a string.",
    "version": "1.5.4",
    "project_urls": {
        "Download": "https://github.com/madisonmay/CommonRegex",
        "Homepage": "http://www.github.com/madisonmay/CommonRegex"
    },
    "split_keywords": [
        "regex"
    ],
    "urls": [],
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "madisonmay",
    "github_project": "CommonRegex",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "commonregex"
}
        
Elapsed time: 1.07397s