<commit_before>Simple-RegEx
-----

A simple command line tool to apply a regular expression search to an input file, and output the text with the matches replaced using a String.format()-style replacement string.

For example::

    simple-regex '[au](ll)' 'e{0}' infile.txt

If infile.txt contains::

    Hal<NAME>

The program will output::

    Hello hello<commit_msg>Add install info to README<commit_after>Simple-RegEx
------------

A simple command line tool to apply a regular expression search to an input file, and output the text with the matches replaced using a String.format()-style replacement string.

For example::

    simple-regex '[au](ll)' 'e{0}' infile.txt

If infile.txt contains::

    Hal<NAME>

The program will output::

    Hello hello

Install
=======

Download and extract `dist/simple-regex-0.1.0.tar.gz`__, or clone this repo with::

  git clone https://github.com/szurcher/simple-regex.git

__ dist/simple-regex-0.1.0.tar.gz

From the simple-regex directory, run::

    python setup.py install
{'fraction_non_alphanumeric': 0.1151219512195122, 'fraction_numerical': 0.007804878048780488, 'mean_word_length': 3.600896860986547, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5640244', 'n_tokens_mistral': 308, 'n_tokens_neox': 296, 'n_words': 115}