bookmarks/cheat/regex.md
2020-02-12 22:30:25 +01:00

245 B

Print only the captured group (src)

Example with expression key=value toast=pain hello=bonjour if you want to capture only what comes after key=, you can use : grep -oP 'key=\K\w+'