{
  a: "Hello from foo" replace "foo" with "Dfl",
  b: "admin123" replace /(\d+)/ with "ID",
  c: "admin123-345" replace /(\d+)-(\d+)/ with ($[2] ++ "-" ++ $[1]),
  d: "admin123-345" replace /(\d+)/ with (if($$ == 0) "ID" else $[1]),
  e: "admin123-345" replace /(\d+)-(\d+)/ with ((first, second) -> first[2] ++ "-" ++ first[1]),
  f: "admin123" replace /(\d+)/ with (digits) -> "ID",
  g: "adming123\n" replace "\n" with "newline"
}