{
  "tableaux-init": {
    "match": "\/^\n?[|]\/S",
    "replace": "\n\n|"
  },
  "tableaux-start": {
    "match": "\/\n\n+[|]\/S",
    "replace": "\n\n\n\n|"
  },
  "tableaux-end": {
    "match": "\/[|](\n\n+|\n?$)\/S",
    "replace": "|\n\n\n\n"
  },
  "tableaux-middle": {
    "match": "\/([^|])(\n[|].*[|]\n)([^|])\/UmsS",
    "replace": "replace_tableaux",
    "is_callback": "Y"
  }
}