Using split still requires the basic familiarity with a simple regex such as ahmad offered; is longer; and may require more than 'just a glance' to understand at some future date.
...but I agree that index, despite it's length and comparative complexity, may be a valuable alternative in the case stated by OP.
In reply to Re^2: How do remove trailing data?
by ww
in thread How do remove trailing data?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |