Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
exrex Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# exrex
> Generate all/random matching strings for a regular expression.
> It can also simplify regular expressions.
> More information: <https://github.com/asciimoo/exrex>.
- 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 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})}}'`