Merge pull request #1273 from samtrion/patch-1

This commit is contained in:
Rico Sta. Cruz 2019-11-17 17:01:19 +11:00
commit c8b99a83ff
1 changed files with 15 additions and 13 deletions

View File

@ -5,7 +5,8 @@ layout: 2017/sheet
weight: -1
authors:
- github: rizqyhi
updated: 2019-03-24
- github: samtrion
updated: 2019-11-14
description: |
Basic cheatsheets for regular expression
---
@ -17,7 +18,7 @@ description: |
### Character classes
| Pattern | Description |
| ------- | ------------------------------ |
| -------- | ------------------------------------ |
| `.` | Any character, except newline |
| `\w` | Word |
| `\d` | Digit |
@ -28,6 +29,7 @@ description: |
| `[abc]` | Any of a, b, or c |
| `[a-e]` | Characters between `a` and `e` |
| `[1-9]` | Digit between `1` and `9` |
| `[^abc]` | Any character except `a`, `b` or `c` |
### Anchors