« first day (4537 days earlier)      last day (418 days later) » 

12:00 AM
I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain" (source)
 
 
1 hour later…
1:13 AM
yawns loudly
 
 
10 hours later…
11:35 AM
How is this possible? Why does Spring's BCryptPasswordEncoder use an incorrect pattern?
 
 
1 hour later…
1:04 PM
@SergeyZolotarev yes, because you're using the PHP flavour with / delimiters
Switch to Java or a different delimiter
It fails because the string starts with {bcrypt]
\A is equivalent to ^, and means the rest is from the start of the string
$2 is not at the start of the string, so it fails to match
This is also why you don't trust language models. They aren't intelligent
They're just incredibly confident what they've generated is correct, but it often isn't
 

« first day (4537 days earlier)      last day (418 days later) »