Merge remote-tracking branch 'benoit-intrw/regex_doc'
This commit is contained in:
commit
7ec90f3afd
|
@ -472,6 +472,9 @@ A multiselection can also be obtained with `S`, which splits the current
|
||||||
selection according to the regex entered. To split a comma separated list,
|
selection according to the regex entered. To split a comma separated list,
|
||||||
use `S` then ', *'
|
use `S` then ', *'
|
||||||
|
|
||||||
|
The regex syntax supported by Kakoune is the Perl one and is describe
|
||||||
|
here <<Regex syntax>>.
|
||||||
|
|
||||||
`s` and `S` share the search pattern with `/`, and hence entering an empty
|
`s` and `S` share the search pattern with `/`, and hence entering an empty
|
||||||
pattern uses the last one.
|
pattern uses the last one.
|
||||||
|
|
||||||
|
@ -988,6 +991,18 @@ begins and/or ends at word boundaries and set the search pattern accordingly.
|
||||||
with `alt-*` you can set the search pattern to the current selection without
|
with `alt-*` you can set the search pattern to the current selection without
|
||||||
Kakoune trying to be smart.
|
Kakoune trying to be smart.
|
||||||
|
|
||||||
|
Regex syntax
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The regex syntax supported by Kakoune is the Perl syntax currently provided
|
||||||
|
by Boost :
|
||||||
|
http://www.boost.org/doc/libs/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html[Perl Regular Expression Syntax].
|
||||||
|
|
||||||
|
Tips
|
||||||
|
^^^^
|
||||||
|
|
||||||
|
* It is possible to make case insensitive regex by prefixing expression with `(?i)`
|
||||||
|
|
||||||
Exec and Eval
|
Exec and Eval
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ Kakoune is written in C++11, here are the main coding style points:
|
||||||
|
|
||||||
- That means avoid depending on boost, it is only allowed for the regex
|
- That means avoid depending on boost, it is only allowed for the regex
|
||||||
implementation. The reference for the current regex support is available under
|
implementation. The reference for the current regex support is available under
|
||||||
http://www.boost.org/doc/libs/1_59_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html[Perl Regular Expression Syntax].
|
http://www.boost.org/doc/libs/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html[Perl Regular Expression Syntax].
|
||||||
|
|
||||||
* 4 spaces for indentation, no tabs
|
* 4 spaces for indentation, no tabs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user