SimpleRegex / SRL-PHP

Simple Regex Language
https://simple-regex.com
MIT License
1.8k stars 112 forks source link

Generate verbose syntax from regexp #35

Closed antonkomarev closed 8 years ago

antonkomarev commented 8 years ago

It would be great to have inverse behavior.

User provides:

/^([A-Z0-9._%+-])+@[A-Z0-9.-]+\.[A-Z]{2,}$/i

Output:

begin with any of (digit, letter, one of "._%+-") once or more,
literally "@",
any of (digit, letter, one of ".-") once or more,
literally ".",
letter at least 2,
must end, case insensitive
KarimGeiger commented 8 years ago

Duplicate of #9