Remove empty spaces and period

前端 未结 3 1315
悲&欢浪女
悲&欢浪女 2021-01-25 08:03

I cannot get this regex to work:

\"4.  182 ex\" (number, period, 2 blank spaces, 3 numbers, blank space, 2 characters\"

The regex syntax should

3条回答
  •  天命终不由人
    2021-01-25 08:08

    For it to match exactly what you said, use:

    (\d)\.\s\s(\d{3})\s\w\w
    

    You'll get it in two groups, first digit and second digit group.

    RegEx101 exmple

    Regards.

提交回复
热议问题