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.
In reply to Re^2: Regex practice script
by JavaFan
in thread Regex practice script
by kindlychung
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |