Compare two strings by ignoring certain characters

前端 未结 1 2001
遇见更好的自我
遇见更好的自我 2021-01-20 07:40

I wonder if there is an easy way to check if two strings match by excluding certain characters in the strings. See example below.

I can easily write such a method by

1条回答
  •  有刺的猬
    2021-01-20 08:18

    Sorry but I think either regex, or replacing the "wildcard" characters with a common character are going to be your best solution. Basically, the answers that you stated you didn't want to receive.

    0 讨论(0)
提交回复
热议问题