Commit Graph

3 Commits

Author SHA1 Message Date
Mathieu Saby
5ff1b995ef Option for matching whole words
Replace Textareas with text Inputs and add labels.
Add an option for matching whole words
Change the behavior of escape option for replacement text:
if checked, \n and \t have a special meaning (newline and tab),
and \\n and \\t must be used for "backslash and n" and "backslash and t"
but other character are escaped : \ means \, \\ means \\, \r means \r etc.
2018-10-14 22:40:31 +02:00
Mathieu Saby
4a49691a4e Deplace menu and simplifiy UI 2018-09-25 08:14:32 +02:00
Mathieu Saby
338fa585d3 Add menu for searching and replacing
Add a new menu "Replace" in "Edit Cells" > "Common Transforms" and a new interaction box for entering parameters.
Under the hood this is a wrapper around GREL replace() function.
The behavior is the same as replace() except the automatic backslah escaping of "Replace with" parameter.
The 2 main parameters in the box are 2 textaras : "Find" and "Replace with"
2 cumulative options are available for "Find" parameter : "Case insensitive" and "Regular Expression"
1 option is available for "Replace with" parameter : "Do not escape backslash automatically"
A validity control of the pattern is made when "Regular expression" is checked.
2018-09-23 22:12:12 +02:00