Remove ..." External" from clipboard

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jjkool
Posts: 3
Joined: 23 Jun 2016, 21:07

Remove ..." External" from clipboard

Post by jjkool » 18 Aug 2022, 15:00

Not sure how to do this, but looking to remove " External" only if at the end of the clipboard, from my clipboard and populate the result back to my clipboard.

I often copy #s from the end of email subject lines, and when double clicking google also selects the external flag.

Thanks all!


[Mod edit: Topic moved from 'Tutorials'.]

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Remove ..." External" from clipboard

Post by mikeyww » 18 Aug 2022, 16:24

Code: Select all

Clipboard = this External
; Clipboard = this and that
Sleep, 100
; -----------------------------
Clipboard := RegExReplace(Clipboard, "\h+External$")
MsgBox, 64, Clipboard, %Clipboard%

Post Reply

Return to “Ask for Help (v1)”