You might also want the s modifier on there in case the input has newlines itself.
Also '\s|$' might be more useful in place of ' |$'.

Last edited by starbucks_mafia; 07/06/04 01:44 AM.

Spelling mistakes, grammatical errors, and stupid comments are intentional.