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

List:       quanta
Subject:    Re: [Quanta] Find and Replace by regex
From:       Dick Angus <RJA-Linux () shaw ! ca>
Date:       2009-07-01 20:41:32
Message-ID: 200907011441.32777.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

Thanks Alan. Worked like a charm.

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;">&gt; I am sure this has been asked before, but I \
couldn't find it and I'm stuck.<br> &gt; I want to find all cases of:<br>
&gt;<br>
&gt;<br>
&gt;  digit&lt;/p&gt;<br>
&gt;<br>
&gt;<br>
&gt; and change them to:<br>
&gt;<br>
&gt;<br>
&gt; digit&lt;/h2&gt;<br>
&gt;<br>
&gt;<br>
&gt; where digit can be any single numeric. The problem I have is that digit<br>
&gt; must be part of the find, but I can't get the replace to leave it there for<br>
&gt; me?<br>
&gt;<br>
&gt;<br>
&gt; TIA and I'm sorry if this is repetitive.<br>
&gt;<br>
&gt; An old mainframer getting current<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>Thanks Alan. Worked like a charm.<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