Rebulk is a Python library for defining simple search patterns in bulk and performing advanced matching on any string. It provides a clean API for building complex matchers with regular expressions, functional patterns, and chain filtering. Current version is 3.3.0, released in December 2023, with irregular release cadence.
pip install rebulkVerified import paths — ran on the pinned version, not inferred.
Create a Rebulk matcher, add string and regex patterns, and match against input.
Set environment variable: import os; os.environ['REBULK_REGEX_ENABLED'] = '1'
Use Python 3.7 or later (Python 3.12 supported in v3.3.0).
Understand pattern evaluation order: first added pattern wins in case of conflict unless priority is set.
Use REBULK_REGEX_ENABLED instead of REGEX_DISABLED.
Use: from rebulk import Match
Set os.environ['REBULK_REGEX_ENABLED'] = '1' before importing rebulk.
Use string, compiled regex, or callable for patterns.
No dependency data recorded yet.