Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2011, 03:41 AM   #1
Poppeye
Junior Member
Poppeye began at the beginning.
 
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!
Poppeye is offline   Reply With Quote
Old 11-08-2011, 03:48 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
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:
http://www.mobileread.com/forums/sho...d.php?t=118569
ldolse is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:01 AM.


MobileRead.com is a privately owned, operated and funded community.