We don't know that yet, but I'll play with benchmarking it this weekend.
My guess is that the look behind translates into a "find a space, slurp any more spaces, do the replace". My version does similar work in the search phase, but does more work in the replace phase.
In reply to Re^6: Converting multiple spaces to nbsp
by GrandFather
in thread Converting multiple spaces to nbsp
by eastcoastcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |