in reply to Re: Regex practice script
in thread Regex practice script

If you enter "0" for either $string or $pattern your loop will end prematurely.
Rubbish.

It's impossible to enter a false string. All strings entered contain a newline.