Thread: Sigil Find
View Single Post
Old 08-30-2010, 09:00 AM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by crutledge View Post
However, with no "TRYOUT" IN Sigil and no global undo I avoid wildcards. The same is true of regex. There is no way to pretest and say, "Whoops" "Lets try again."
Set your regex to look in the current file and hit 'Find Next'. Check that it's found only the passage you want to change and hit 'Replace'. You can undo this if there was a problem with your regex.

The lack of undo only applies to 'Replace All', but Sigil does provide a way to test and debug your regex before using that.

But for simple passages such as the one you describe, it's easiest just to copy and paste the code into the Find box. Sometimes you need to do that twice because Sigil will refactor any nonstandard newlines.
charleski is offline   Reply With Quote