Metadata-Version: 2.4
Name: flagfinder
Version: 0.1.0
Summary: A tiny utility to find CTF-style flags like DH{...} in strings
Author-email: Hyunmin Koo <hminkoo10@naver.com>
License: MIT
Project-URL: Homepage, https://github.com/hminkoo10/flagfinder
Project-URL: Repository, https://github.com/hminkoo10/flagfinder
Project-URL: Issues, https://github.com/hminkoo10/flagfinder/issues
Keywords: ctf,flag,regex,parser,security
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# flagfinder

A tiny Python package for finding CTF-style flags in strings.

## Install

```bash
pip install flagfinder
```

## Usage

```python
from flagfinder import findflag, findflags, findflag_labeled

text = "hello DH{test123} and DH{abc}"

print(findflag("DH", text))
# DH{test123}

print(findflags("DH", text))
# ['DH{test123}', 'DH{abc}']

print(findflag_labeled("flag", "DH", text))
# flag: DH{test123}
```
