java中关于正则表达式的匹配问题 10
Exceptioninthread"main"java.util.regex.PatternSyntaxException:Illegalrepetitionnearin...
Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repetition near index 26
($region).made-in-china.com{region=(dongguan|foshan|fujian|guangzhou|hangzhou|henan|jinhua|nanjing|ningbo|qingdao|qinghai|shanghai|shenzhen|sichuan|suzhou|taiwan|wenzhou|wuxi|zhongshan)}
上面的正则表达式哪里错啦。求解释,应该怎么写呢?? 展开
($region).made-in-china.com{region=(dongguan|foshan|fujian|guangzhou|hangzhou|henan|jinhua|nanjing|ningbo|qingdao|qinghai|shanghai|shenzhen|sichuan|suzhou|taiwan|wenzhou|wuxi|zhongshan)}
上面的正则表达式哪里错啦。求解释,应该怎么写呢?? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询