only numbers with withespace (javascript)
Hello,
In a field you can enter only phone numbers (with a 0 before). I have the following script:
var regexp = /\D/
if(regexp.test(event.value)==true)
{
app.alert("Bitte nur Zahlen eingeben: 052 123 45 67",3)
}
else
{
event.target.fillColor = color.transparent
}
This entry may also contain withespaces. but when i write the number with a space, i got the error massage.
What exactly do I have to enter to get a result?
Thank you for your help 🙂
