From 295cad98651d54cf8967c6f86e8d646263ed6703 Mon Sep 17 00:00:00 2001 From: Shudarsan Regmi Date: Fri, 21 Jun 2024 19:03:51 +0530 Subject: [PATCH 1/2] fix: correct misplaced Markdown formatting in Git notes --- source/_posts/git.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_posts/git.md b/source/_posts/git.md index 8ffefa5..e2a98cb 100644 --- a/source/_posts/git.md +++ b/source/_posts/git.md @@ -360,9 +360,9 @@ A `.gitignore` file specifies intentionally untracked files that Git should igno $ git push origin -u ``` - #### **Delete** remote branch - ```shell script - $ git push origin --delete - ``` + ```shell script + $ git push origin --delete + ``` {.marker-timeline} ### Log From ee907bab43018c2b094cba9923e64862d647c61d Mon Sep 17 00:00:00 2001 From: Shudarsan Regmi Date: Sat, 22 Jun 2024 06:22:54 +0530 Subject: [PATCH 2/2] Description for the meta character was provided for regex note --- source/_posts/regex.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/source/_posts/regex.md b/source/_posts/regex.md index 95ec84d..1a09cc8 100644 --- a/source/_posts/regex.md +++ b/source/_posts/regex.md @@ -64,21 +64,23 @@ This is a quick cheat sheet to getting started with regular expressions. | `a*+` | Possessive quantifier | ### Common Metacharacters +| Pattern | Description | +| -------- | :----------------------------------------- | +| `^` | Matches the start of a string. | +| `{` | Starts a quantifier for the number of occurrences. | +| `+` | Matches one or more of the preceding element. | +| `<` | Not a standard regex meta character (commonly used in HTML). | +| `[` | Starts a character class. | +| `*` | Matches zero or more of the preceding element. | +| `)` | Ends a capturing group. | +| `>` | Not a standard regex meta character (commonly used in HTML). | +| `.` | Matches any character except a newline. | +| `(` | Starts a capturing group. | +| `|` | Acts as a logical OR within a regex pattern. | +| `$` | Matches the end of a string. | +| `\` | Escapes a meta character, giving it literal meaning. | +| `?` | Matches zero or one of the preceding element. | -- \^ -- \{ -- \+ -- \< -- \[ -- \* -- \) -- \> -- \. -- \( -- \| -- \$ -- \\ -- \? {.cols-3 .marker-none}