Closed panda-on closed 1 year ago
the following regex "(dt)?+.+" in Java should match any strings except "dt", but it turns out matched "dt" on the web page;
use the preceding regex in Java, will get the result.
If input "dt", "dts", "flower", the matched output string are "dts","flower"
Include browser name and version
Edge 111.0.1661.51
https://regex101.com/r/LojuWO/1
https://onecompiler.com/java/3z3t3j5hs
Works as expected
Quiz Bug
Bug Description
the following regex "(dt)?+.+" in Java should match any strings except "dt", but it turns out matched "dt" on the web page;
Reproduction steps
use the preceding regex in Java, will get the result.
Expected Outcome
If input "dt", "dts", "flower", the matched output string are "dts","flower"
Browser
Include browser name and version
OS
Edge 111.0.1661.51