regex: java.util.regex companion code (groups, lookarounds, replaceAll lambdas, ReDoS and timeouts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
\d+(?=px) -> "120", "48"
|
||||
foo(?!bar) -> "foo", "foo"
|
||||
(?<=\$)\d+(?:\.\d\d)? -> "19.99", "23"
|
||||
(?<![\d$.])\d+ -> "3"
|
||||
policy abcdefgh -> false
|
||||
policy Abcdefg1 -> true
|
||||
policy Ab1 -> false
|
||||
policy ABCDEFG1x -> true
|
||||
1,234,567
|
||||
compiled (?<=a+)b
|
||||
compiled (?<=a{1,9})b
|
||||
rejected (?<=(?:ab)+)c : Look-behind group does not have an obvious maximum length
|
||||
Reference in New Issue
Block a user