Can somebody help me, how can i set the regexreplace that it let only the numbers and letters?
Code: Select all
RegExReplace (Clipboard, "[^0-9]+", " ")
Code: Select all
RegExReplace (Clipboard, "[^0-9]+", " ")
Code: Select all
Clipboard := RegExReplace(Clipboard, "[^0-9A-Za-z]", "")
Code: Select all
Clipboard := RegExReplace(Clipboard, "\W", "")
No, look:
Code: Select all
str = abc___###123
MsgBox, % RegExReplace(str, "[^0-9A-Za-z]", "")
MsgBox, % RegExReplace(str, "\W", "")
Code: Select all
str = abc___###123
MsgBox, % RegExReplace(str, "i)[^\da-z]")
Good pointteadrinker wrote: ↑26 Nov 2020, 07:58No, look:This one is shorter:Code: Select all
str = abc___###123 MsgBox, % RegExReplace(str, "[^0-9A-Za-z]", "") MsgBox, % RegExReplace(str, "\W", "")
Code: Select all
str = abc___###123 MsgBox, % RegExReplace(str, "i)[^\da-z]")
Users browsing this forum: AlFlo, arrondark, MerlinSilk, slowwd and 105 guests