Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rfunix/PyMatch
PyMatch Tool
https://github.com/rfunix/PyMatch
Last synced: 13 days ago
JSON representation
PyMatch Tool
- Host: GitHub
- URL: https://github.com/rfunix/PyMatch
- Owner: rfunix
- Created: 2014-04-29T03:31:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-14T19:49:15.000Z (about 10 years ago)
- Last Synced: 2024-08-01T22:56:39.818Z (3 months ago)
- Language: Python
- Size: 298 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# PyMatch - Output Regex auxiliary tool
pyMatch is designed to help you generate formatted and valid outputs, in a simple way.
He uses Regex to collate and validate data, and then you can use the captured groups to generate a formatted output as well want to.## Screenshots
![](http://i58.tinypic.com/20md8h.png)
![](http://i57.tinypic.com/11177lw.jpg)
![](http://i57.tinypic.com/27xdmiw.jpg)
## Installation
You can download the latest tarball by clicking [here](https://github.com/rfunix/PyMatch/tarball/master) or latest zipball by clicking [here](https://github.com/rfunix/PyMatch/zipball/master).
Preferably, you can download PyMatch by cloning the [Git](https://github.com/rfunix/PyMatch) repository:
```
git clone https://github.com/rfunix/PyMatch.git PyMatch-dev
```PyMatch works out of the box with [Python](http://www.python.org/download/) version '''2.6.x''' and '''2.7.x''' on any platform.
## Usage
To get the list of basic options and information about the project:
```bash
python pymatch.py -h
```Examples of use:
To use the groups obtained in the use Regex -g (Group number).
python pymatch.py -f "teste.txt" -p "^(011)(\d{4,5})(\d{4})$" -g "((1))(2)-(3)"
cat teste.txt | python pymatch.py -p "^(011)(\d{4,5})(\d{4})$" -g "((1))(2)-(3)"
PyMatch is program is free software; you may redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; Version 2 with the clarifications and exceptions described in the license file. This guarantees your right to use, modify, and redistribute this software under certain conditions. If you wish to embed PyMatch technology into proprietary software, we sell alternative licenses (contact [email protected]).PyMatch is free software, keeping the picture can USE AND ABUSE