I checked everything over the Internet, but I really can’t find any specific solution to my problem.
How to check if a string consists only of declared valid characters?
I want my string to consist only of 0-9, AZ and az
Therefore, the line oifrmf9RWGEWRG3oi4m3ofm3mklwef-qæw must be invalid due to - and æ while the line joidsamfoiWRGWRGmoi34m3f must be valid.
I use the built-in RegExp to split the lines, but is it possible to just check and return the boolean value false or true?
my regexp:
set pw = new regexp pw.global = true pw.pattern = "[^a-zA-Z0-9]" newstring = pw.replace("iownfiwefnoi3w4mtl3.-34ø'3", "")
Thanks:)
Behrens
source share