diff --git a/regexp.md b/regexp.md index d75195892..60e2e7a6b 100644 --- a/regexp.md +++ b/regexp.md @@ -5,14 +5,14 @@ layout: 2017/sheet weight: -1 authors: - github: rizqyhi + - github: kolapsys - github: samtrion updated: 2019-11-14 description: | Basic cheatsheets for regular expression --- -## - +## RegExp {: .-three-column} ### Character classes @@ -33,10 +33,18 @@ description: | ### Anchors -| Pattern | Description | -| ------- | ---------------- | -| `^abc` | Start with `abc` | -| `abc$` | End with `abc` | +| Pattern | Description | +| ------- | ----------------------- | +| `\G` | Start of match | +| `^` | Start of string | +| `$` | End of string | +| `\A` | Start of string | +| `\Z` | End of string | +| `\z` | Absolute end of string | +| `\b` | A word boundry | +| `\B` | Non-word boundry | +| `^abc` | Start with `abc` | +| `abc$` | End with `abc` | ### Escaped characters