in reply to Re: simple regexp problem
in thread simple regexp problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: simple regexp problem
by jeffa (Bishop) on Dec 05, 2005 at 18:07 UTC | |
|
Re^3: simple regexp problem
by Tanktalus (Canon) on Dec 05, 2005 at 19:09 UTC |