Add a documentation to the 'a' flag
This commit is contained in:
parent
449255a060
commit
2bf3d10884
@ -1152,6 +1152,11 @@ The options can be any combination of >
|
|||||||
i - case insensitive
|
i - case insensitive
|
||||||
By default, regular expression matching is case sensitive. With this
|
By default, regular expression matching is case sensitive. With this
|
||||||
option, matching is done without regard to case.
|
option, matching is done without regard to case.
|
||||||
|
a - ascii conversion
|
||||||
|
By default, transformation is made on the raw utf-8 string. With
|
||||||
|
this option, matching is done with a string converted into ascii.
|
||||||
|
One use of this option is to replace accentued chars by a non
|
||||||
|
accentued version.
|
||||||
|
|
||||||
The syntax of regular expressions is beyond the scope of this document. Python
|
The syntax of regular expressions is beyond the scope of this document. Python
|
||||||
regular expressions are used internally, so the python 're' module can be used
|
regular expressions are used internally, so the python 're' module can be used
|
||||||
@ -1211,6 +1216,18 @@ this is a title
|
|||||||
This Is A Title
|
This Is A Title
|
||||||
|
|
||||||
|
|
||||||
|
Demo: ASCII transformation
|
||||||
|
------------------- SNIP -------------------
|
||||||
|
snippet ascii "Replace non ascii chars"
|
||||||
|
${1: an accentued text}
|
||||||
|
${1/.*/$0/a}
|
||||||
|
endsnippet
|
||||||
|
------------------- SNAP -------------------
|
||||||
|
ascii<tab>à la pêche aux moules
|
||||||
|
à la pêche aux moules
|
||||||
|
a la peche aux moules
|
||||||
|
|
||||||
|
|
||||||
Demo: Regular expression grouping
|
Demo: Regular expression grouping
|
||||||
This is a clever c-like printf snippet, the second tabstop is only shown
|
This is a clever c-like printf snippet, the second tabstop is only shown
|
||||||
when there is a format (%) character in the first tabstop.
|
when there is a format (%) character in the first tabstop.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user