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 ```bash
grep -o '[0-9]*' grep -o '[0-9]*'
#or #or
grep -oP '\d' grep -oP '\d*'
``` ```
##### Grep integer with certain number of digits (e.g. 3) ##### Grep integer with certain number of digits (e.g. 3)
```bash ```bash