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

List:       quanta
Subject:    Re: [Quanta] Find and Replace by regex
From:       Alan Richmond <alan () aardwolfweb ! com>
Date:       2009-06-30 17:23:03
Message-ID: 200906301023.03921.alan () aardwolfweb ! com
[Download RAW message or body]

On Tuesday 30 June 2009 09:33:03 am Dick Angus wrote:
> I want to find all cases of:
>
>  digit</p>
>
> and change them to:
>
> digit</h2>

Hi Dick,
The piece you are missing is what Quanta calls "placeholders" (backreferences 
in PHP).

In "Find":
([\d]</)p(>)
The parenthesis tell it to put the contents in a placeholder or variable.

In "Replace With":
\1h2\2
and check "Use placeholders".
The \1 will insert the contents of the first pair of parenthesis and the \2 
the second and so on.

HTH,
Alan


-- 
Alan Richmond
Aardwolf Networking
aardwolfweb.com
707-442-7470
_______________________________________________
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