in reply to Re: my script is not giving the result using last function
in thread my script is not giving the result using last function

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

  • Comment on Re^2: my script is not giving the result using last function