grex
Generate
regexs. More information: https://github.com/pemistahl/grex#5-how-to-use.
- Generate a simple
regex:
grex
- Generate a case-insensitive
regex:
grex
- Replace digits with
\d:
grex
- Replace Unicode word character with
\w:
grex
- Replace spaces with
\s:
grex
- Detect repeating patterns in the input and shorten them using
{min,max}quantifiers:
grex
- Generate
regexof test cases (separated by newline) from a file:
grex
- Do not generate anchors and non-capture groups:
grex --no-anchors
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
