A series of spaces preceeded by a space:
s/(?<=\s)(\s+)/' ' x length($1)/eg
Update: Added needed parens around the \s+. doh!
In reply to Re: Converting multiple spaces to nbsp
by ikegami
in thread Converting multiple spaces to nbsp
by eastcoastcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |