My regex is causing a stack overflow in Java; what am I missing?

前端 未结 4 1823
攒了一身酷
攒了一身酷 2021-01-18 13:32

I am attempting to use a regular expression with Scanner to match a string from a file. The regex works with all of the contents of the file except for this line:

         


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 13:57

    read this to understand the problem: http://www.regular-expressions.info/catastrophic.html ... and then use one of the other suggestions

提交回复
热议问题