<commit_before># FLUX (Fluent Regular Expressions)
node-flux is a Node.js port of [Selvin Ortiz' Flux.php](http://github.com/selvinortiz/flux)

Currently node-flux is Node.js compatible as it makes use of the `util` library. I'm looking to change this in the near future to be usable in the browser and on the server.

# Examples
Examples are provided in the `/examples` directory. You can test them with `node examples/usdate.js` or `node examples/usphone.js`

More examples will be added as the syntax evolves or changes.

# Changelog

## 0.2.0
- Added `addSeed`, `removeSeed`
- Seeds can be passed through as final arguments in `match` and `replace`
- Added `toString()` which will compile your pattern with modifiers
- Added new tests

## 0.1.0
- Changed version to minor version 1 as the syntax is working and passes all examples used by the the [Flux.php](http://github.com/selvinortiz/flux)

## 0.0.4
- Added `global` modifier (g)
- Added new test for `global` modifier

## 0.0.3
- Added examples `usdate.js` and `usphone.js`
- Commented code a little

## 0.0.2
- Adds the `letters` method
- Renamed `numbers` to `digits`
- Adds support for quantifiers in `digits`
- Adds `ignoreCase` as an alias for `inAnyCase`

# License
MIT - [http://jbrooksuk.mit-license.org](http://jbrooksuk.mit-license.org)<commit_msg>Added tests for getSegment and added command to README<commit_after># FLUX (Fluent Regular Expressions)
node-flux is a Node.js port of [Selvin Ortiz' Flux.php](http://github.com/selvinortiz/flux)

Currently node-flux is Node.js compatible as it makes use of the `util` library. I'm looking to change this in the near future to be usable in the browser and on the server.

# Examples
Examples are provided in the `/examples` directory. You can test them with `node examples/usdate.js` or `node examples/usphone.js`

More examples will be added as the syntax evolves or changes.

# Changelog

## 0.2.0
- Added `addSeed`, `removeSeed`
- Seeds can be passed through as final arguments in `match` and `replace`
- Added `toString()` which will compile your pattern with modifiers
- Added new tests
- Added `getSegment`. When passed an integer will return that position in the pattern. Default is `0`.

## 0.1.0
- Changed version to minor version 1 as the syntax is working and passes all examples used by the the [Flux.php](http://github.com/selvinortiz/flux)

## 0.0.4
- Added `global` modifier (g)
- Added new test for `global` modifier

## 0.0.3
- Added examples `usdate.js` and `usphone.js`
- Commented code a little

## 0.0.2
- Adds the `letters` method
- Renamed `numbers` to `digits`
- Adds support for quantifiers in `digits`
- Adds `ignoreCase` as an alias for `inAnyCase`

# License
MIT - [http://jbrooksuk.mit-license.org](http://jbrooksuk.mit-license.org)
{'fraction_non_alphanumeric': 0.10439164866810655, 'fraction_numerical': 0.011879049676025918, 'mean_word_length': 3.9982014388489207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6971281', 'n_tokens_mistral': 930, 'n_tokens_neox': 867, 'n_words': 365}