Please consider using a regular expression to perform the validation as it is much simpler to code and faster to execute:
The point of assignment was probably to learn about substr/index/rindex
In reply to Re^2: my script is not giving the result using last function
by Anonymous Monk
in thread my script is not giving the result using last function
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |