webForumDet fria alternativet

reg exp bindestreck

1 svar · 214 visningar · startad av margar-0

margar-0Medlem sedan nov. 200362 inlägg
#1

Jag skulle vilja ha en regexp som INTE tillåter ett bindestreck, "-"

Kan ngn hjälpa mig?

Jesper TMedlem sedan nov. 20017 144 inlägg
#2

Du behöver inte regexp för det.

str="Min sträng"
if instr(str,"-") > 0 then Response.write "Inga bindestreck!"
134 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
131 ms — hämta tråd, inlägg och bilagor (db)