|
Posted by aquaren on 06/22/07 14:27
I am parsing some text files that have all the spacing between words
doubled. The space between characters is one instead of zero, and the
space between words is two instead of one.
I am trying to create a regular expression that replaces the single
space between the characters in the words with no space. Something
like preg_replace('/.\s.','',$string).
Obviously, the above code doesn't do the trick, but that is the idea.
Can someone please show me the way? Thank you.
Navigation:
[Reply to this message]
|