in reply to Re^2: Beginner question about search and replace
in thread Beginner question about search and replace

"Why the (?: ) around the space character? It runs just fine as below?"

It does work well and is less complex to explain. I use the (?: ) to show the practice of not capturing matches into memory which wont be used in the replacement. In this specific example memory isn't going to be a problem because we're only dealing with a single string. But I personally like using it even as a way to mark what I want and don't want to work with in the replacement.

"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote

Replies are listed 'Best First'.
Re^4: Beginner question about search and replace
by Kc12349 (Monk) on Sep 16, 2011 at 16:46 UTC

    Fair enough. I was just curious if I was missing something. Thanks