rgxg

Generate extended regular expressions from simple patterns

brewmacoslinux
Try with needOr install directly
Source

About

C library and command-line tool to generate (extended) regular expressions

Commands

rgxg

Examples

Generate regex to match email-like patterns$ rgxg 'user@example.com'
Create regex for matching phone numbers$ rgxg '123-456-7890'
Generate regex pattern from a sample string with options$ rgxg -e 'test@domain.org'