This commit is contained in:
Miloslav Ciz 2024-01-07 02:43:35 +01:00
parent 9635bbfa85
commit 0ea738f524
12 changed files with 26 additions and 17 deletions

View file

@ -32,7 +32,7 @@ There exist different standards and de-facto standards for regular expressions,
|`{`*M*`,`*N*`}`| *M* to *N* repetitions of *expr* |escape (`\{`, `\}`) in basic| `a{2,4}` matches `aa`, `aaa`, `aaaa` |
|*e1*<code>&#124;</code>*e2*| *e1* or *e2* | escape in basic |<code>ab&#124;cd</code> match. `ab` or `cd`|
| `\`*n* |backref., *n*th matched group (starts with 1)| extended only | `(..).*\1` matches e.g. `ABcdefAB` |
|`[:alpha:]` | alphabetic, *a* to *z*, *A* to *Z* | Posix (GNU has `[[` `]]` | `[:alpha:]*` matches e.g. `abcDEF` |
|`[:alpha:]` | alphabetic, *a* to *z*, *A* to *Z* | Posix (GNU has `[[` `]]`) | `[:alpha:]*` matches e.g. `abcDEF` |
|`[:alnum:]` | | same as above | |
|`[:digit:]` | | same as above | |
|`[:blank:]` | | same as above | |