Sometimes you don't want to use split because it's too lenient! Your example will be happy to accept AAAA_BBBB_CCCC. The original poster probably wants this string to be rejected, but split will eat AAAA, BBBB, and discard CCCC.
In reply to Re^2: simple regexp problem
by Celada
in thread simple regexp problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |