{ "info": { "author": "Meme Kagurazaka", "author_email": "github@mrliu.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: Public Domain", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\r\n README\r\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\r\n\r\n\r\nTable of Contents\r\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n\r\n1 rer\r\n2 Install\r\n3 All in one simple function\r\n\r\n\r\n1 rer\r\n\u2550\u2550\u2550\u2550\u2550\r\n\r\n Regular expression in regular expression.\r\n\r\n\r\n2 Install\r\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\r\n\r\n `pip install rer'\r\n\r\n\r\n3 All in one simple function\r\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\r\n\r\n \u250c\u2500\u2500\u2500\u2500\r\n \u2502 import re\r\n \u2502\r\n \u2502 __version__ = '1.1.2'\r\n \u2502 __author__ = 'Meme Kagurazaka'\r\n \u2502 __license__ = 'Public Domain'\r\n \u2502\r\n \u2502\r\n \u2502 def rer(re_string, re_group=0,\r\n \u2502 item_continuation=lambda _: _, list_continuation=lambda _: _,\r\n \u2502 re_continuation=None):\r\n \u2502 \"\"\"rer atom\r\n \u2502\r\n \u2502 This function use regular expression string `re_string' and the group\r\n \u2502 `re_group' (default 0) to match the `data'. This will evaluates a list,\r\n \u2502 a function `re_continuation' will apply to every match of the list,\r\n \u2502 a function `list_continuation' will apply to the list. `list_continuation'\r\n \u2502 does nothing by default.\r\n \u2502\r\n \u2502 `re_continuation' applies `item_continuation' to `re_group' by default.\r\n \u2502\r\n \u2502 Return value is a function which can be apply to the `data'.\r\n \u2502 Return value can also be used as a `item_continuation' or\r\n \u2502 `list_continuation' of another rer recursively.\r\n \u2502 \"\"\"\r\n \u2502\r\n \u2502 if re_continuation is None:\r\n \u2502 re_continuation = lambda _: item_continuation(_.group(re_group))\r\n \u2502\r\n \u2502 return lambda x: list_continuation(\r\n \u2502 [re_continuation(_) for _ in re.compile(re_string).finditer(x)])\r\n \u2514\u2500\u2500\u2500\u2500\r\n\r\n\r\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jks-liu/rere", "keywords": "Nested regular expression re", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "rer", "package_url": "https://pypi.org/project/rer/", "platform": "", "project_url": "https://pypi.org/project/rer/", "project_urls": { "Homepage": "https://github.com/jks-liu/rere" }, "release_url": "https://pypi.org/project/rer/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "Regular expression in regular expression", "version": "1.1.2" }, "last_serial": 2749504, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d7e8e5199858b1f3952dbcb80d5530ed", "sha256": "5d6b4ad628948d79c42cf7677ab3591f50da3b02e4c32611d58c5202c5c71ea6" }, "downloads": -1, "filename": "rer-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7e8e5199858b1f3952dbcb80d5530ed", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2477, "upload_time": "2017-02-06T14:53:09", "url": "https://files.pythonhosted.org/packages/81/bd/623de77a7a3ef21e755b778499f668ef766dfc3a8d2a9531831287e22317/rer-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1fa1ed658f3d430de4eb420044db71f1", "sha256": "e2b9c6bd39830f1d378eea36336960603a55aa235f070294cd6bda968f85f941" }, "downloads": -1, "filename": "rer-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1fa1ed658f3d430de4eb420044db71f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1587, "upload_time": "2017-02-06T14:53:10", "url": "https://files.pythonhosted.org/packages/5b/12/b38a7b1410f22868806ef120fb05c0b9cebbd986cfe196d8218d833a6b5b/rer-0.0.1.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8ae08714309f131f50c7d30a0f8a8d3e", "sha256": "ae654ac2dbfa5472f25d1c4cf1544771e032ce789823cdb8250fc16973ac92e1" }, "downloads": -1, "filename": "rer-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8ae08714309f131f50c7d30a0f8a8d3e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3615, "upload_time": "2017-02-25T05:22:15", "url": "https://files.pythonhosted.org/packages/6a/e5/175621e1ce80f8f3b4855acdb09cdaa020f5716395511789c38d8e68952a/rer-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89a5e350a1f2f4a8425733616eb2a457", "sha256": "17a1bba1f0e29e89de54d3792349d39223716d91ef0a70996be50e811a043060" }, "downloads": -1, "filename": "rer-1.0.1.tar.gz", "has_sig": false, "md5_digest": "89a5e350a1f2f4a8425733616eb2a457", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2035, "upload_time": "2017-02-25T05:22:16", "url": "https://files.pythonhosted.org/packages/65/63/40e67215bebf50ba4ea87107cdecf9703fa5c210984193b71b56596d9fc1/rer-1.0.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "64d17ab023ebe1b634440f4c0616a856", "sha256": "76649021110a8cfa338fe247bc22b3420c82491da4a1fcc76c2c359893cfafbc" }, "downloads": -1, "filename": "rer-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "64d17ab023ebe1b634440f4c0616a856", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3656, "upload_time": "2017-04-03T13:45:33", "url": "https://files.pythonhosted.org/packages/12/47/697aac48824d65214eea5ded38e69c5aaf80dad0a35a62154193b5330f8d/rer-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10366ae825164b895286e8f0c3200b0f", "sha256": "dd97506915403c9764ed0eee617833f1f4e0cb5b28767df4fcb63a21bc53be72" }, "downloads": -1, "filename": "rer-1.1.1.tar.gz", "has_sig": false, "md5_digest": "10366ae825164b895286e8f0c3200b0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2115, "upload_time": "2017-04-03T13:45:39", "url": "https://files.pythonhosted.org/packages/ee/ec/469a57f49e07b41cc2a5fa0778f72a4ebb69b2774fcf486db5ba488e20fc/rer-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "db7ef607dc703e37efe25884e5828ffc", "sha256": "7a617bca4e00c809968d6d3ef39c9aaf65e7eca8a0ca6525c10ceb6e29fb600f" }, "downloads": -1, "filename": "rer-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db7ef607dc703e37efe25884e5828ffc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3796, "upload_time": "2017-04-03T13:47:35", "url": "https://files.pythonhosted.org/packages/6b/3d/73aa7e988bb69d56537615f1a18029078e1f81f5283dbabf5e741f0cdda9/rer-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b00fa96141750b01cb703d2310c57c96", "sha256": "cffe6c9efac66464c279989554414e4a1a87e4ba01df246ad06887c1dbff5367" }, "downloads": -1, "filename": "rer-1.1.2.tar.gz", "has_sig": false, "md5_digest": "b00fa96141750b01cb703d2310c57c96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2150, "upload_time": "2017-04-03T13:47:37", "url": "https://files.pythonhosted.org/packages/bd/1a/0f1b8b07cb8fdd32889eecc0f489ee065a2dc2f968e7affa0852c4e88b1d/rer-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db7ef607dc703e37efe25884e5828ffc", "sha256": "7a617bca4e00c809968d6d3ef39c9aaf65e7eca8a0ca6525c10ceb6e29fb600f" }, "downloads": -1, "filename": "rer-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db7ef607dc703e37efe25884e5828ffc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3796, "upload_time": "2017-04-03T13:47:35", "url": "https://files.pythonhosted.org/packages/6b/3d/73aa7e988bb69d56537615f1a18029078e1f81f5283dbabf5e741f0cdda9/rer-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b00fa96141750b01cb703d2310c57c96", "sha256": "cffe6c9efac66464c279989554414e4a1a87e4ba01df246ad06887c1dbff5367" }, "downloads": -1, "filename": "rer-1.1.2.tar.gz", "has_sig": false, "md5_digest": "b00fa96141750b01cb703d2310c57c96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2150, "upload_time": "2017-04-03T13:47:37", "url": "https://files.pythonhosted.org/packages/bd/1a/0f1b8b07cb8fdd32889eecc0f489ee065a2dc2f968e7affa0852c4e88b1d/rer-1.1.2.tar.gz" } ] }