Merge pull request #1252 from kolapsys/master
Update 'Anchors' in regexp basic cheatsheets
This commit is contained in:
commit
b74da3ccd0
20
regexp.md
20
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue