From 473b1ac11a68233184fb6cd9ecb0bae0cdf1b0b1 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Thu, 25 Feb 2021 12:46:24 -0500 Subject: [PATCH] exrex: add page (#5296) --- pages/common/exrex.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/exrex.md diff --git a/pages/common/exrex.md b/pages/common/exrex.md new file mode 100644 index 0000000000..da62146e00 --- /dev/null +++ b/pages/common/exrex.md @@ -0,0 +1,37 @@ +# exrex + +> Generate all/random matching strings for a regular expression. +> It can also simplify regular expressions. +> More information: . + +- Generate all possible strings that match a regular expression: + +`exrex '{{regular_expression}}'` + +- Generate a random string that matches a regular expression: + +`exrex --random '{{regular_expression}}'` + +- Generate at most 100 strings that match a regular expression: + +`exrex --max-number {{100}} '{{regular_expression}}'` + +- Generate all possible strings that match a regular expression, joined together by a custom delimiter string: + +`exrex --delimiter "{{, }}" '{{regular_expression}}'` + +- Print count of all possible strings that match a regular expression: + +`exrex --count '{{regular_expression}}'` + +- Simplify a regular expression: + +`exrex --simplify '{{ab|ac}}'` + +- Print eyes: + +`exrex '{{[oO0](_)[oO0]}}'` + +- Print a boat: + +`exrex '{{( {20}(\| *\\|-{22}|\|)|\.={50}| ( ){0,5}\\\.| {12}~{39})}}'`