Edited Topic is solved
Re: How to extract word with all UPPER CASE? Topic is solved
Yes:
Code: Select all
Clipboard := "Tony loves BLUE colour"
RegExMatch(Clipboard, "\b[A-Z]+\b", Colour)
MsgBox, % Colour
Yes. Just be very specific about what you want to keep. Nothing but letters and spaces? Not even keep punctuation?
Re: How to extract word with all UPPER CASE?
Edited
Last edited by fivefive on 12 Mar 2023, 10:47, edited 1 time in total.
Re: How to extract word with all UPPER CASE?
Code: Select all
Clipboard := "Here's some text and some 'special' characters and even a number or 2."
CleanStr := RegExReplace(Clipboard, "[^ a-zA-Z]")
MsgBox, % CleanStr
Re: How to extract word with all UPPER CASE?
Edited
Last edited by fivefive on 12 Mar 2023, 10:47, edited 1 time in total.
Re: How to extract word with all UPPER CASE?
Code: Select all
Clipboard := "HOW ARE YOU today?"
RegExReplace(Clipboard, "\b[A-Z]+\b",, Count)
MsgBox, % Count