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