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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue