I am trying to make a script to edit the content of the clipboard with a regular expression.
In short, I want to copy "a:1,2,3;b:4,5,6;c:7,8,9;d:1,2,3;e:4,5,6;f:7,8,9" and get "b:4,5,6;d:1,2,3;e:4,5,6" when I paste.
I tried using RegExReplace and the Clipboard variable, but I cannot get my script to work (I guess it is due to syntax problems, like the use of quotation marks, or maybe the incorrect use of variables).
I would like to make something like this:
Code: Select all
Clipboard := RegExReplace(Clipboard,"a.*(b.*);c.*(;d.*);f.*","$1$2")
return
Thank you for you help.