Quote:
Originally Posted by mmholt
Thanks for all the details. I still don't understand the "Replace with". How does that remove the space?
|
You got lots of excellent information, but in case the answer to this question wasn't clear: It removes the space because there is a space after "(\w\.)" in the "Search for" part. That means the space and the word character (followed by period) will all be "eaten up" or as chaley correctly put it "consumed" by the search. Of course, those three characters will only be eaten up if the positive lookahead assertion is matched (another (\w\.) follows the first one.) However the "Replace with" part doesn't have a space. It has just a match for the group of two characters - (\w\.) - word character followed by period. So the three character string: "word character-period-space" that is consumed (subject to the lookahead) gets replaced with a two character string that is the same as the three character string, minus the space. As chaley said, the process then starts again.
Simple