Ditto icon indicating copy to clipboard operation
Ditto copied to clipboard

Regular expression end of line ($) anchor

Open martincook3 opened this issue 11 months ago • 0 comments

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.

martincook3 avatar Mar 15 '24 13:03 martincook3