How did you arrive at "6,7,18 or 5,6,17" as acceptable results?
123456789012345678901 # one-based - 6,7,19
THE FOOD IS DELICIOUS
012345678901234567890 # zero-based - 5,6,18
In reply to Re: finding the position of a particular character in a string
by ww
in thread finding the position of a particular character in a string
by deep3101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |