I've to format a date into a specific format ^\\d{4}-\\d{2}-\\d{2}$. I'm searching now for a while and can't find a solution. I found these \\d{3}-\\d{4}, \d that nearly matches my requirements but I can't figure out why it doesn't match. I'm testing with regex101
As far I understand it, the first entry should work.
2021-11-10
"1234-12-34"
I also tried to copy characters from an Ascii-table to ensure they are not special.