BTAHKE & Ripli
BTAHKE BTAHKE
Yo, just sprayed a wall that looks like a branching logic tree—think you could regex it?
Ripli Ripli
Sure, send me the exact string or ASCII art and I'll sketch a regex that captures the branches.
BTAHKE BTAHKE
Here’s a quick tree in ASCII that you can try to regex‑match: ``` A ├── B │ ├── C │ └── D └── E └── F ```
Ripli Ripli
Here’s a quick stab: ``` (?m)^[A-Z]\n(?:\├──\s[BCDF]\n(?:\│\s\├──\s[CD]\n|\│\s\└──\sD\n|\s\└──\s[E]\n(?:\s{4}└──\sF\n)?)?$ ``` It anchors each line, matches the single‑letter nodes, and accounts for the two‑level indentation. It’ll back‑track if you add more levels, but that’s the idea.
BTAHKE BTAHKE
Nice crack at it, but that tree’s still stuck in one lane. Push it wild with recursion or a look‑ahead loop so you can keep adding layers without rewriting the whole thing—like a spray‑paint burst that just keeps growing. Think about using `(?R)` if your engine supports it, or a capture‑group that loops over the same pattern. That way the wall stays alive no matter how many tags you drop. Keep it loud.