Ditto
Ditto copied to clipboard
Regular expression end of line ($) anchor
Given the following paste script:
clip.AsciiTextReplaceRegex("@some\\.where\\.com$", "");
return false;
Sample input 1: [email protected]
Expected output:
returned false
foobar
Actual output is the same.
Sample input 2 (with an extra trailing character): [email protected]
Expected output (no match so unchanged):
returned false
[email protected]
Actual output:
returned false
foobarx
The $
anchor to the end of the input is not being taken into account.