{
"info": {
"author": "landybird",
"author_email": "1442172978@qq.com",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3"
],
"description": "# \u4efb\u610f\u7ec4\u5408 re.compile \n\n[](https://pypi.org/project/combine-re-compile/) [](https://opensource.org/licenses/MIT)\n\n\n> \u517c\u5bb9\u73af\u5883\n\n`Windows`/`Linux`/`MacOs`\n\n
\n\n### 1 \u5b89\u88c5\n\n> pip \u5b89\u88c5\n```\n$ pip install combine_re_compile\n```\n\n> \u6e90\u7801\u5b89\u88c5\n```\n $ git clone https://github.com/landybird/combine_re_compile.git\n $ cd combine_re_compile\n $ python setup.py install\n ```\n\n
\n\n### 2 \u4f7f\u7528\n\n\n```python\n\n\nDIGIT_PATTERN = re.compile(r\"\"\"\n (?P # start named group\n \\d+ # 1 or more integers\n ) # close named group\n \"\"\", re.VERBOSE)\n\n\n\nCHAR_PATTERN = re.compile(r\"\"\"\n (?P # start named group\n [a-z] # a character\n ) # close named group\n \"\"\", re.VERBOSE)\n\n\nCHARS_PATTERN = re.compile(r\"\"\"\n (?P # start named group\n [a-z]+ # a character\n ) # close named group\n \"\"\", re.VERBOSE)\n\n\nr = CombinationPattern(DIGIT_PATTERN, CHAR_PATTERN, new_pattren_name=\"my_new_pattern\").get_new_pattern\n\ns = \"213213as2312\"\nprint(r.search(s).group('my_new_pattern')) # \u5206\u7ec4\u540d\u79f0\n\n>> 213213a\n\n```\n\n\n\n### License\n\nMIT [\u00a9landybird](https://github.com/landybird)\n\n\n",
"description_content_type": "text/markdown",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/landybird/combine_re_compile",
"keywords": "",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "combine-re-compile",
"package_url": "https://pypi.org/project/combine-re-compile/",
"platform": "",
"project_url": "https://pypi.org/project/combine-re-compile/",
"project_urls": {
"Homepage": "https://github.com/landybird/combine_re_compile"
},
"release_url": "https://pypi.org/project/combine-re-compile/0.0.3/",
"requires_dist": null,
"requires_python": "",
"summary": "combine re compile",
"version": "0.0.3"
},
"last_serial": 4712247,
"releases": {
"0.0.1": [
{
"comment_text": "",
"digests": {
"md5": "d0468013a0c1df2425f4383dbb77324f",
"sha256": "dfc95a9c145b52c981cdc09e892064636d42549de45dd181736635674cae8c63"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d0468013a0c1df2425f4383dbb77324f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3870,
"upload_time": "2019-01-18T13:30:15",
"url": "https://files.pythonhosted.org/packages/29/63/e2531f7ea24ca603233f9cd4bba0cc0592759f6221f78d3596b53889d74b/combine_re_compile-0.0.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "46d8257eed7b5177ecd3e70e55d3fd5d",
"sha256": "f13ed74d7d0040cfeb9d97d1c54f224b886f92b9ba2962a281473b10e4bd7f59"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "46d8257eed7b5177ecd3e70e55d3fd5d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2498,
"upload_time": "2019-01-18T13:30:18",
"url": "https://files.pythonhosted.org/packages/f2/9b/518ed0f0bf79053f68ccbaf29546495e1adac49d20617952d71037712102/combine_re_compile-0.0.1.tar.gz"
}
],
"0.0.2": [
{
"comment_text": "",
"digests": {
"md5": "17e2b86a01d3495b260fb87adfb9471d",
"sha256": "caf85189022d476f0d8d5fe9e53b640a1e4e345b50706aa2fcd037fe244d5490"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "17e2b86a01d3495b260fb87adfb9471d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3867,
"upload_time": "2019-01-18T13:32:42",
"url": "https://files.pythonhosted.org/packages/27/09/0ef9da34b1991a5dc9f5a9b162cb30ace4ac1999ed7769b546ff7d3a5959/combine_re_compile-0.0.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "cd5cc9681b12c762f0e436c8ae16ade9",
"sha256": "e328d85103d175b60752a62b42e4c5a0ca0882c8cf4154af3464982850502ec5"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "cd5cc9681b12c762f0e436c8ae16ade9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2475,
"upload_time": "2019-01-18T13:32:43",
"url": "https://files.pythonhosted.org/packages/81/fa/7f267c2739091b178c37ecc7890f00b7716f2ba1a7d167115b3e92a559af/combine_re_compile-0.0.2.tar.gz"
}
],
"0.0.3": [
{
"comment_text": "",
"digests": {
"md5": "987827da239fff9a08c44c7215b7cf64",
"sha256": "89b017b5e3bd9d3ac7ecaea0e6d86d6e85076be8a011bcc6834e696215825edb"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "987827da239fff9a08c44c7215b7cf64",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4634,
"upload_time": "2019-01-18T13:37:28",
"url": "https://files.pythonhosted.org/packages/af/0a/ce5c5c9f8a9692746712b62d818f0bf4d0561edd43b28a3464f20351fc97/combine_re_compile-0.0.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "5d037de93f0210026ef55cbea5f1bd86",
"sha256": "273f1f925d527446b2ab6cc0f80b1971c04b4cdefac13c77bdb1d5aa74d9f85b"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "5d037de93f0210026ef55cbea5f1bd86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2397,
"upload_time": "2019-01-18T13:37:29",
"url": "https://files.pythonhosted.org/packages/f3/73/2df18245fbfad1aed425cd12d54d04ea4df22d7e2b83ad43cb4fb5f743ea/combine_re_compile-0.0.3.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "987827da239fff9a08c44c7215b7cf64",
"sha256": "89b017b5e3bd9d3ac7ecaea0e6d86d6e85076be8a011bcc6834e696215825edb"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "987827da239fff9a08c44c7215b7cf64",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4634,
"upload_time": "2019-01-18T13:37:28",
"url": "https://files.pythonhosted.org/packages/af/0a/ce5c5c9f8a9692746712b62d818f0bf4d0561edd43b28a3464f20351fc97/combine_re_compile-0.0.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "5d037de93f0210026ef55cbea5f1bd86",
"sha256": "273f1f925d527446b2ab6cc0f80b1971c04b4cdefac13c77bdb1d5aa74d9f85b"
},
"downloads": -1,
"filename": "combine_re_compile-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "5d037de93f0210026ef55cbea5f1bd86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2397,
"upload_time": "2019-01-18T13:37:29",
"url": "https://files.pythonhosted.org/packages/f3/73/2df18245fbfad1aed425cd12d54d04ea4df22d7e2b83ad43cb4fb5f743ea/combine_re_compile-0.0.3.tar.gz"
}
]
}