Anyone know why this regex passes in regex101 when...
# random
c
Anyone know why this regex passes in regex101 when java is selected, but doesn't work in my kotlin app? Just trying to make sure a string has both upper and lower case letters. https://regex101.com/
(?=.*?[A-Z])(?=(.*[a-z]){1,})
d
Can you reproduce in playground?
c
d
regex101 might be wrong about java
c
🤯
l
Regex 101 is set on PHP regex dialect by default IIRC, you need to switch it to Java 8 or something.
c
louiscad yeah I switched it to java8 and I got that regex above.