in reply to Re: Regex practice scriptin thread Regex practice script
If you enter "0" for either $string or $pattern your loop will end prematurely.
It's impossible to enter a false string. All strings entered contain a newline.