mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +03:00
Update quick_select_patterns.md to include info about capturing groups
closes: https://github.com/wez/wezterm/pull/5082
This commit is contained in:
parent
ad11815e87
commit
749ddc9ffe
@ -17,6 +17,12 @@ config.quick_select_patterns = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
If you want to use capture groups in your patterns, you must use
|
||||||
|
non-capturing groups `(?:)` for them to work as you intend, as
|
||||||
|
the overall list of `quick_select_patterns` is compiled into a larger
|
||||||
|
alternation regex that itself uses capture groups.
|
||||||
|
|
||||||
{{since('20230408-112425-69ae8472', outline=True)}}
|
{{since('20230408-112425-69ae8472', outline=True)}}
|
||||||
The regex syntax now supports backreferences and look around assertions.
|
The regex syntax now supports backreferences and look around assertions.
|
||||||
See [Fancy Regex Syntax](https://docs.rs/fancy-regex/latest/fancy_regex/#syntax)
|
See [Fancy Regex Syntax](https://docs.rs/fancy-regex/latest/fancy_regex/#syntax)
|
||||||
|
Loading…
Reference in New Issue
Block a user