in reply to Why does this have strange results.
In this line:
you should escape the pipe "|", too.
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."