s9e/regexp-builder
Generate compact regular expressions that match a given list of strings (ideal for keyword search). Builds optimized patterns like ba[rz]|foo from input terms, with factories for PHP, Java, JavaScript, RE2, plus RawBytes/RawUTF8 output modes.
regex library, JavaScript’s regexgen).For Executives: "This library lets us dynamically generate regex patterns from business rules—like a ‘fill-in-the-blank’ for validation or search. For example, instead of manually updating code when we add a new email domain to our allowlist, we configure it once and let the system handle the regex. This cuts dev time by 30% for features like custom input rules or log parsing, while reducing bugs from hardcoded regex. MIT-licensed and battle-tested, it’s a low-risk way to future-proof our data pipelines."
For Engineers: *"RegexpBuilder abstracts away the pain of crafting and maintaining complex regex strings. Key benefits:
$builder->add('user_*@example.com')) instead of writing /^user_\w+@example\.com$/.How can I help you explore Laravel packages today?