Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.
The problem is that the common submatch syntax used in regular expressions for replacement (like $1, $2 etc.) does not seem to be working in this case.
When I run the replacement, the $1 is not being substituted with the capturing group.
Does ChaiScript support using capturing groups in the replacement string? If so, what is the proper syntax?
UPDATE:
I don't know what happened, but I tried again today and everything has worked like expected. Sorry for the trouble!
Hi,
I'm trying to use AsciiTextReplaceRegex to replace some parameter formatting to another format.
For example:
The regular expression I'm using is:
clip.AsciiTextReplaceRegex(":(\w+)", "{$1}");
The problem is that the common submatch syntax used in regular expressions for replacement (like $1, $2 etc.) does not seem to be working in this case.
When I run the replacement, the $1 is not being substituted with the capturing group.
Does ChaiScript support using capturing groups in the replacement string? If so, what is the proper syntax?
UPDATE:
I don't know what happened, but I tried again today and everything has worked like expected. Sorry for the trouble!