Edit This Code:
See Result »
Search a string for "w3Schools", and display the position of the match:
Try it
Result: