>_ IzzyLab

Topic breakdown

Rearranging parts of a string is classic work for the s/pattern/replacement/ substitution in a stream editor like sed -E. The idea is capture groups: you wrap the right pieces of the string in parentheses, and in the right side refer to them by number (\1, \2, ...) and reassemble them in a different order. "Exactly N digits" is more reliably set with the counter {N}, and the delimiter of the s command doesn't have to be a slash — if slashes are already in the pattern, it's more convenient to pick another character so you don't have to escape each one.

What's checked

  1. Dates in ISO format
  2. Old format removed

What it looks like