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

前端 未结 7 612
庸人自扰
庸人自扰 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:05

    As everyone already said, if you enclose a set of characters (no need to escape in this situation) in square brackets, you are saying: "please allow these characters I'm putting inside. I found a reference video for you: Skip to 22-23 min

提交回复
热议问题