![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2011
Device: Android
|
Replace problem
Hello,
please consider me an advanced beginner. I want to replace a deceptively simple thing, but I can't find a control code for "same thing as above". (Is there a documentation?) Search: Part [A-z]+<br> [0-9]+<br> Replace with: <h2>same thing as above</h2> Any help is appreciated! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Surround it with Parentheses and then use \1, e.g.:
Code:
(Part [A-z]+)<br> Code:
<h2>\1</h2> Read the regex intro for more detail, this is covered: https://www.mobileread.com/forums/sho...d.php?t=118569 |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A Search and Replace problem | AJ Starr | Library Management | 2 | 10-20-2011 11:06 PM |
Search and Replace Problem | FrozenInferno | Conversion | 11 | 08-13-2011 01:29 PM |
Search and Replace Problem | FrozenInferno | Calibre | 0 | 08-05-2011 08:47 PM |
Search and Replace problem | naro_c | Conversion | 5 | 02-25-2011 12:59 AM |
Problem with replace with | stgabriel | Recipes | 1 | 02-06-2011 04:37 PM |