Update 'Anchors' in regexp basic cheatsheets

This commit is contained in:
kolapsys 2019-10-24 15:28:41 +03:00
parent 4da6b9adbe
commit b7510ac455
1 changed files with 14 additions and 7 deletions

View File

@ -5,13 +5,12 @@ layout: 2017/sheet
weight: -1
authors:
- github: rizqyhi
updated: 2019-03-24
- github: kolapsys
updated: 2019-10-24
description: |
Basic cheatsheets for regular expression
---
##
{: .-three-column}
### Character classes
@ -31,10 +30,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