Hi guys, I was wondering if there was a way to only copy capital alphabet letters that are among randon numbers and symbols, maybe a regex match I am not sure?
For example 1@#11HxaaEllf%LLfffO if I highlight that and copy only HELLO will go to clipboard?
Thank you! I really appreciate the help.
Copy only capital letters to the clipboard?
Re: Copy only capital letters to the clipboard?
Run the script below and use Shift+Ctrl+C to copy only capital letters to the clipboard.
Code: Select all
+^c::
Clipboard := ""
Send, ^c
ClipWait, 1
if ErrorLevel
return
Clipboard := RegExReplace(Clipboard, "[^A-Z]")
return
Re: Copy only capital letters to the clipboard?
dang thats exactly what i needed, are you allowed to tip on this
Re: Copy only capital letters to the clipboard?
Is there a way to modify this script so it copies either lowercasse or uppercase but ignores characters for instance H^e!L*O would copy hello?boiler wrote: ↑23 Apr 2021, 12:32Run the script below and use Shift+Ctrl+C to copy only capital letters to the clipboard.Code: Select all
+^c:: Clipboard := "" Send, ^c ClipWait, 1 if ErrorLevel return Clipboard := RegExReplace(Clipboard, "[^A-Z]") return
Thanks again
Re: Copy only capital letters to the clipboard?
No tips necessary. Glad it’s helpful to you.
Re: Copy only capital letters to the clipboard?
Try this:
Code: Select all
+^c::
Clipboard := ""
Send, ^c
ClipWait, 1
if ErrorLevel
return
Clipboard := Format("{:L}", RegExReplace(Clipboard, "[^a-zA-Z]"))
return
Re: Copy only capital letters to the clipboard?
Your earlier post showed it making them all lowercase, so that’s what I did.
Who is online
Users browsing this forum: GEOVAN and 175 guests