Wouldn't it be easier or quicker to ...Maybe or maybe not, but it would also not do what the original is asking for. This is looping over the input data, not over the patterns. It's also generating a second array instead of doing it in-place. Regardless of speed, that's guaranteed to need more memory.
In reply to Re (3): Using a variable as pattern in substitution
by VSarkiss
in thread Using a variable as pattern in substitution
by stew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |