Java RegEx no match found error

后端 未结 3 1816
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 04:35

Following regex giving me java.lang.IllegalStateException: No match found error

String requestpattern = \"^[A-Za-z]+ \\\\/+(\\\\w+)\";
Pattern p         


        
3条回答
  •  温柔的废话
    2020-12-10 04:45

    The Matcher#group(int) throws :

    IllegalStateException - If no match has yet been attempted, or if the 
    previous match operation failed.
    

提交回复
热议问题