Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rfunix/PyMatch

PyMatch Tool
https://github.com/rfunix/PyMatch

Last synced: 13 days ago
JSON representation

PyMatch Tool

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