Compare two strings by ignoring certain characters

前端 未结 5 776
梦毁少年i
梦毁少年i 2021-01-20 07:38

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

5条回答
  •  走了就别回头了
    2021-01-20 07:52

    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.

提交回复
热议问题