How to match repeated patterns?

后端 未结 4 1931
我在风中等你
我在风中等你 2020-12-08 14:59

I would like to match:

some.name.separated.by.dots

But I don\'t have any idea how.

I can match a single part like this

         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 15:35

    (\w+\.)+
    

    Apparently, the body has to be at least 30 characters. I hope this is enough.

提交回复
热议问题