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,9 @@
|
||||
price: 5 dollars, fee: 12 dollars
|
||||
price: USD 5, fee: USD 12
|
||||
replaceAll("$") -> IllegalArgumentException: Illegal group reference: group index is missing
|
||||
price: 5 $, fee: 12 $
|
||||
price: 10 USD, fee: 24 USD
|
||||
unquoted lambda -> IndexOutOfBoundsException: No group 5
|
||||
hello ankur, you owe $5
|
||||
hi ${nobody}
|
||||
rEgUlAr ExprEssIOns
|
||||
Reference in New Issue
Block a user