in reply to Re: help! reading in special characters from file
in thread help! reading in special characters from file
So one should decide exactly what is needed, depending on the situation:
# pick one of: s/ +/ /g; # just reduce strings of consecutive spaces s/[ \xA0]+/ /g; # reduce and normalize space/nbsp strings s/[ \xA0\t]+/ /g; # include tabs as well s/\s+/ /g; # all kinds of whitespace, including newlines
|
|---|