View Single Post
Old 10-17-2011, 09:10 AM   #11
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by mmholt View Post
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
Starson17 is offline   Reply With Quote