Merge pull request #1252 from kolapsys/master

Update 'Anchors' in regexp basic cheatsheets
This commit is contained in:
Rico Sta. Cruz 2019-12-25 19:10:53 +11:00 committed by GitHub
commit b74da3ccd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 6 deletions

View File

@ -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` |