{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": 1,
      "metadata": {},
      "outputs": [],
      "source": [
        "def hide(string):\n",
        "    regex = r'( *)(.*)(#\\.\\.\\.)(.*)'\n",
        "    return re.sub(regex, \n",
        "                  lambda match: \"\".join([ match[1], \"... # \", match[4] ]), \n",
        "                  string, \n",
        "                  0) if \"#...\" in string else string"
      ],
      "id": "e05efc74"
    },
    {
      "cell_type": "code",
      "execution_count": 2,
      "metadata": {},
      "outputs": [],
      "source": [
        "import glob\n",
        "import regex as re"
      ],
      "id": "f329f347"
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "metadata": {},
      "outputs": [],
      "source": [
        "#!uv add regex\n",
        "## Resolved 107 packages in 1.25s                                       \n",
        "##Prepared 1 package in 299ms                                             \n",
        "##Installed 1 package in 4ms                                  \n",
        "## + regex==2026.9.29"
      ],
      "id": "44121c79"
    }
  ],
  "nbformat": 4,
  "nbformat_minor": 5,
  "metadata": {
    "jupytext": {
      "text_representation": {
        "extension": ".qmd",
        "format_name": "quarto",
        "format_version": "1.0",
        "jupytext_version": "1.19.5"
      }
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3 (ipykernel)",
      "language": "python"
    },
    "language_info": {
      "name": "python",
      "codemirror_mode": {
        "name": "ipython",
        "version": "3"
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.12.3"
    }
  }
}