3 ms·
Actually, I feel compelled to note that as written, \(dog|cat\)* doesn't do what I said; it matches stuff like this: (dog cat)))) cat What I said
by thaumasiotes 11y ago
Actually, I feel compelled to note that as written, \(dog|cat\)* doesn't do what I said; it matches stuff like this:
(dog
cat))))
cat
What I said embarrassingly requires another set of non-escaped parens: \((dog|cat)\)*
:(