Update 'Anchors' in regexp basic cheatsheets
This commit is contained in:
parent
4da6b9adbe
commit
b7510ac455
21
regexp.md
21
regexp.md
|
@ -5,13 +5,12 @@ layout: 2017/sheet
|
||||||
weight: -1
|
weight: -1
|
||||||
authors:
|
authors:
|
||||||
- github: rizqyhi
|
- github: rizqyhi
|
||||||
updated: 2019-03-24
|
- github: kolapsys
|
||||||
|
updated: 2019-10-24
|
||||||
description: |
|
description: |
|
||||||
Basic cheatsheets for regular expression
|
Basic cheatsheets for regular expression
|
||||||
---
|
---
|
||||||
|
|
||||||
##
|
|
||||||
|
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
### Character classes
|
### Character classes
|
||||||
|
@ -31,10 +30,18 @@ description: |
|
||||||
|
|
||||||
### Anchors
|
### Anchors
|
||||||
|
|
||||||
| Pattern | Description |
|
| Pattern | Description |
|
||||||
| ------- | ---------------- |
|
| ------- | ----------------------- |
|
||||||
| `^abc` | Start with `abc` |
|
| `\G` | Start of match |
|
||||||
| `abc$` | End with `abc` |
|
| `^` | 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
|
### Escaped characters
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue