Metadata-Version: 2.4
Name: TrieFastRegex
Version: 0.1.1a0
Summary: A compact regular expression builder from string lists using Trie data structure
Home-page: https://github.com/brandoncallah/pyTriEX
Author: Brandon Callahan
Author-email: Brandon Callahan <brandoncallah@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/brandoncallah/pyTriEX
Project-URL: Repository, https://github.com/brandoncallah/pyTriEX
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# TrieFastRegex

A Python library for building compact regular expressions from lists of strings using Trie data structure.

## Installation

```bash
pip install TrieFastRegex
```

## Usage

```python
from pyTriEX import build_regex_from_list

# Build regex from a list of strings
strings = ["cat", "car", "card", "care", "careful"]
regex = build_regex_from_list(strings)
print(regex)  # ^ca(?:t|r(?:(?:d|e(?:ful)?))?)$

# Use the regex
import re
pattern = re.compile(regex)
print(pattern.match("car"))  # Match object
print(pattern.match("dog"))  # None
```

## Features

- Efficient Trie-based regex construction
- Compact output patterns
- Easy to use

## License

MIT License
