in reply to Converting multiple spaces to nbsp
A series of spaces preceeded by a space:
s/(?<=\s)(\s+)/' ' x length($1)/eg
Update: Added needed parens around the \s+. doh!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting multiple spaces to nbsp
by Smylers (Pilgrim) on Jun 17, 2005 at 13:35 UTC | |
by ikegami (Patriarch) on Jun 17, 2005 at 14:59 UTC | |
by Smylers (Pilgrim) on Jun 17, 2005 at 15:17 UTC | |
by ikegami (Patriarch) on Jun 17, 2005 at 15:27 UTC |