Merge pull request #23 from linus/patch-1

Use equivalent regex with PCRE
This commit is contained in:
Bonnie I-Man Ng 2022-05-08 01:02:27 +08:00 committed by GitHub
commit b912cc99bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -280,7 +280,7 @@ grep -c "^$"
```bash
grep -o '[0-9]*'
#or
grep -oP '\d'
grep -oP '\d*'
```
##### Grep integer with certain number of digits (e.g. 3)
```bash