阅读背景:

在Swift中使用Regex进行简单搜索时,如何避免因搜索字符串中的特殊字符而导致的错误?

来源:互联网 

I'm using Regex to search for a word in a textView. I implemented a textField and two switch as options (Whole words and Match case). All work fine when you enter a plain word in the search filed but I get an error when I enter a special character like \ or *. I'm using Regex to search for a word in a textV




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: