Behaviour of Java RegExp '?' and '+'

后端 未结 0 1009
攒了一身酷
攒了一身酷 2020-12-19 13:37

Why does this regex evaluation returns \'false\' ? Pattern.matches("[abc]?", "abc") // false.

As per definition \'?\' evaluates if the string matc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题