If you just need to check for the presence of A separator, your code (as ammended) would be sufficient.
However, you might want to check other things, such as the number of fields you get after the split, if the fields contain the data you expected (you do have a plan on how to handle empty fields, don't you?) etc.
In reply to Re: Input validation
by matija
in thread Input validation
by pacman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |