From f53647eca7dee15bc51174b2a9335bc899444213 Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Mon, 5 Dec 2022 11:28:23 +1000 Subject: [PATCH] Add regex cheatsheets: - closes #65 --- regex | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 regex diff --git a/regex b/regex new file mode 100644 index 0000000..5c673f5 --- /dev/null +++ b/regex @@ -0,0 +1,13 @@ +--- +tags: [ patterns ] +--- + +? match 0..1 characters or patterns (`?` must be escaped in sed BRE) +* match 0..more characters or patterns ++ match 1..more characters or patterns (`+` must be escaped in sed BRE) + +{} match `count` characters or patterns (`{` and `}` must be escaped in sed BRE) +{} match `from`..`to` characters or patterns (`{` and `}` must be escaped in sed BRE) + +^ match the beggining of a string +$ match the end of a string