I'd rather go with a regex like suggested by Ikegami.
You should really try to figure out why your system is acting so strangely.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: Strange behavior with STDIN
by LanX
in thread Strange behavior with STDIN
by slugger415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |