Regular expression to match a dot

后端 未结 6 413
无人共我
无人共我 2020-11-22 09:51

Was wondering what the best way is to match \"test.this\" from \"blah blah blah test.this@gmail.com blah blah\" is? Using Python.

I\'ve tri

6条回答
  •  有刺的猬
    2020-11-22 10:41

    A . in regex is a metacharacter, it is used to match any character. To match a literal dot, you need to escape it, so \.

提交回复
热议问题