Re: Find and Replace by regex
Alan Richmond <[email protected]>
| Newsgroups | gmane.comp.kde.devel.quanta.user |
|---|---|
| Organization | Aardwolf Networking |
| Message-ID | <[email protected]> |
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