Quote:
Originally Posted by d351r3d
If you just put in "find":
Could you put in "replace":
|
Quote:
Originally Posted by theducks
NO!
You did not insert any captured data (the \1 )
<p>\1</p>
You did not even CAPTURE any data 
Put a ( ) pair around the part you want to capture (if there is a real ( or ) in the template: escape those: \( or \)
|
Quote:
Originally Posted by d351r3d
So you can't do what I'm trying to do with Regex? Like regex can't be like "oh that's the beginning of a line with content, let me just put something before that and there's the end of a line, let me just put something after that line with content."
|
What he is saying is you need to capture the data first and then place it in the replace string. See the brackets around the find string and the \1 in the replace string.
HOWEVER: Please note that this will match
EVERY line in your document no matter what it is.
In the case of your sample code:
Could you put in "replace":
I would recommend either pasting your text into a blank text file or using Notepad++ or equivalent to do the replacement in the text before pasting it into Sigil. Notepad++ can use the same find/replace strings making easier for me.