Thread: Find / replace
View Single Post
Old 12-15-2010, 06:52 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by bremler View Post
Got it! Clicked in 'minimal matching' and that did the track. Thanks so much :-))
The reason for this is that, without the "minimal matching", the "(.*)" search will include the closing tag (in fact, it will include the whole text of the file from that point onwards. That's also why it was only finding the first instance, of course.), hence it's not being replaced. With the "minimal match", it will stop when it reaches text that matches that specified after the wildcard bit.
HarryT is offline   Reply With Quote