The documentation says:
If the substring is not found, index returns one less than the base, ordinarily -1 .
So you will need to modify your test accordingly.
In reply to Re: How could I check if substring is not included in string ?
by Corion
in thread How could I check if substring is not included in string ?
by lufthansa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |