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

@@ -5,11 +5,11 @@
- Replace the first occurrence of a regular expression in each line of a file, and print the result:
`sed 's/{{regex}}/{{replace}}/' {{filename}}`
`sed 's/{{regular_expression}}/{{replace}}/' {{filename}}`
- Replace all occurrences of an extended regular expression in a file, and print the result:
`sed -r 's/{{regex}}/{{replace}}/g' {{filename}}`
`sed -r 's/{{regular_expression}}/{{replace}}/g' {{filename}}`
- Replace all occurrences of a string in a file, overwriting the file (i.e. in-place):