in reply to Re^5: Converting multiple spaces to nbsp
in thread Converting multiple spaces to nbsp

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.


Perl is Huffman encoded by design.
  • Comment on Re^6: Converting multiple spaces to nbsp