PHP regex replace white space by if it is following single letter
Posted
by WebXpert
on Stack Overflow
See other posts from Stack Overflow
or by WebXpert
Published on 2010-01-19T15:49:12Z
Indexed on
2010/05/05
10:28 UTC
Read the original article
Hit count: 129
Hi, I have user defined string (html formated string to be saved and used in web) and need to find a way to replace each white space which is right after a single letter by
.
For example "this is a string"
should become "this is a string"
,
"bla bla b l abla b la blabla"
should become "bla bla b l abla b la blabla"
...etc...
© Stack Overflow or respective owner