I want to understand how regex parser work so i started debug a string using Regex buddy
also from http://www.regular-expressions.info/engine.html
Here author explains how Regex engine parser works using following regular expression
/cat/
and string
"He captured a catfish for his cat."
author said that if Regex engine didn't find a matching token it backtracks to the last matching character
when i debug this in Regex buddy see here it started backtracking at the very first position
Why is it so ??