[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    [Quanta] Find and Replace by regex
From:       Dick Angus <RJA-Linux () shaw ! ca>
Date:       2009-06-30 16:33:03
Message-ID: 200906301033.03697.RJA-Linux () shaw ! ca
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am sure this has been asked before, but I couldn't find it and I'm stuck. I 
want to find all cases of:
 

 digit</p>
 

and change them to:
 

digit</h2>
 

where digit can be any single numeric. The problem I have is that digit must be 
part of the find, but I can't get the replace to leave it there for me?
 

TIA and I'm sorry if this is repetitive.

An old mainframer getting current

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Nimbus Sans L'; font-size:14pt; \
font-weight:400; font-style:normal;">I am sure this has been asked before, but I \
couldn't find it and I'm stuck. I want to find all cases of:<br>  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p> digit&lt;/p&gt;<br>  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>and change them to:<br>  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>digit&lt;/h2&gt;<br>  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>where digit can be any single numeric. The problem I have \
is that digit must be part of the find, but I can't get the replace to leave it there \
for me?<br>  <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>TIA and I'm sorry if this is repetitive.<br /><br> <span \
style=" font-weight:600; color:#0000ff;">An old mainframer getting \
current</span></p></body></html>



_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic