s// /g replaces all null characters with a space. And it so happens that a null character is between every other character, so...
And by the way, s/|/ /g means replace either null or null with a space. :)
Does this answer your question?
Update: The 'null character' terminology isn't correct. See BrowerUK's note.
In reply to Re: Re: replacing pipe "|"
by Nkuvu
in thread replacing pipe "|"
by nadadogg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |