Merge pull request #1252 from kolapsys/master
Update 'Anchors' in regexp basic cheatsheets
This commit is contained in:
commit
b74da3ccd0
14
regexp.md
14
regexp.md
|
@ -5,14 +5,14 @@ layout: 2017/sheet
|
||||||
weight: -1
|
weight: -1
|
||||||
authors:
|
authors:
|
||||||
- github: rizqyhi
|
- github: rizqyhi
|
||||||
|
- github: kolapsys
|
||||||
- github: samtrion
|
- github: samtrion
|
||||||
updated: 2019-11-14
|
updated: 2019-11-14
|
||||||
description: |
|
description: |
|
||||||
Basic cheatsheets for regular expression
|
Basic cheatsheets for regular expression
|
||||||
---
|
---
|
||||||
|
|
||||||
##
|
## RegExp
|
||||||
|
|
||||||
{: .-three-column}
|
{: .-three-column}
|
||||||
|
|
||||||
### Character classes
|
### Character classes
|
||||||
|
@ -34,7 +34,15 @@ description: |
|
||||||
### Anchors
|
### Anchors
|
||||||
|
|
||||||
| Pattern | Description |
|
| 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` | Start with `abc` |
|
||||||
| `abc$` | End with `abc` |
|
| `abc$` | End with `abc` |
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue