What regex to use for this

后端 未结 6 1082
心在旅途
心在旅途 2021-01-19 05:57

I\'m writing a regex that will find either

  • 1 or more dots . .. ... .... followed by a space or not followe
6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 06:43

    For the dots, you can use the + thing, which specifies one or more occurrences of the preceding string. Also, you'd have to escape the . and the ?, as they have special meanings in regex:

    (\.+)$
    (\?+)$
    

提交回复
热议问题