multiple pages: normalize regular expression instead of regex, regexp or pattern (#5830)

This commit is contained in:
marchersimon
2021-05-10 11:03:12 +02:00
committed by GitHub
parent fd7936c944
commit 10728f1ab4
37 changed files with 74 additions and 66 deletions

View File

@@ -17,4 +17,4 @@
- Search for packages that match the regular expresssion given in `pattern`:
`apt-file {{search|find}} --regexp {{pattern}}`
`apt-file {{search|find}} --regexp {{regular_expression}}`

View File

@@ -5,7 +5,7 @@
- Display AUR packages that match a regular expression:
`auracle search '{{regex}}'`
`auracle search '{{regular_expression}}'`
- Display package information for a space-separated list of AUR packages:

View File

@@ -22,4 +22,4 @@
- Split a file at a line matching a regular expression:
`csplit {{file}} /{{regex}}/`
`csplit {{file}} /{{regular_expression}}/`

View File

@@ -16,7 +16,7 @@
- Exclude files matching a regular expression:
`while inotifywait --recursive {{path/to/directory}} --exlude '{{regex}}'; do {{command}}; done`
`while inotifywait --recursive {{path/to/directory}} --exlude '{{regular_expression}}'; do {{command}}; done`
- Wait at most 30 seconds:

View File

@@ -18,7 +18,7 @@
- Find the package that owns a specific file, using a regular expression:
`pacman --files --regex '{{search_pattern}}'`
`pacman --files --regex '{{regular_expression}}'`
- List only the package names:

View File

@@ -24,7 +24,7 @@
- Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`):
`zgrep -E {{^regex$}} {{path/to/file}}`
`zgrep -E {{regular_expression}} {{path/to/file}}`
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match: