Android | Syntax Error in regexp pattern

前端 未结 3 1592
猫巷女王i
猫巷女王i 2020-12-21 09:00

I am using \\\\.(.*)} regex pattern to search a specific string in my Android Test Project. when i am using this regex to check on online available tools the re

3条回答
  •  醉酒成梦
    2020-12-21 09:48

    I was facing the same problem. I just surround it with a

     try{
    
     }catch (PatternSyntaxException e) {
               e.printStackTrace();
            }
    

    and it worked.

提交回复
热议问题