Regular expression, How to allow combination of dot (period) and letters?

前端 未结 7 590
庸人自扰
庸人自扰 2020-12-31 08:30

I want to allow (.) and (a-zA-Z) letters and _ and - , I have some problems with the (.) ,

Any idea ?

Thanks in advance ,

Ish

相关标签:
7条回答
  • 2020-12-31 09:23

    [a-zA-Z_\-.] should work. You might have to use a double slash, depending on the language you are using.

    0 讨论(0)
提交回复
热议问题