Skip to content

Commit

Permalink
Add regex cheatsheets:
Browse files Browse the repository at this point in the history
- closes cheat#65
  • Loading branch information
EmilySeville7cfg authored and EmilySeville7cfg committed Dec 5, 2022
1 parent 8eef132 commit f53647e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions regex
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
tags: [ patterns ]
---

<char|pattern>? match 0..1 characters or patterns (`?` must be escaped in sed BRE)
<char|pattern>* match 0..more characters or patterns
<char|pattern>+ match 1..more characters or patterns (`+` must be escaped in sed BRE)

<char|pattern>{<count>} match `count` characters or patterns (`{` and `}` must be escaped in sed BRE)
<char|pattern>{<from..to>} match `from`..`to` characters or patterns (`{` and `}` must be escaped in sed BRE)

^<pattern> match the beggining of a string
<pattern>$ match the end of a string

0 comments on commit f53647e

Please sign in to comment.