in reply to Re: Re: Re: Re: character conversion in a loop...
in thread character conversion in a loop...

The problem with "never use" had to do with some mode that would cause the string to be copied, and if it was used anywhere in the program it would stay on. But, that's been addressed with newer versions, and you copy it by using $1 anyway, so it's no worse. Try benchmarking it to see if saving the capture but capturing the whole match comes out ahead or behind or no change. I kind of figured that saving the capture was going to come out ahead.

Yes, I meant s, not m.

—John

  • Comment on Re: Re: Re: Re: Re: character conversion in a loop...