That's already what I am doing in my first method. I was using a variable to make the example code look better. I should have mentioned that in real world cases I apply "substr" to the original string on the fly.
Thanks anyway.
In reply to Re^2: Applying a regex to part of a string
by holdyourhorses
in thread Applying a regex to part of a string
by holdyourhorses
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |