View Single Post
Old 01-29-2014, 08:51 AM   #1
Alt68er
Member
Alt68er began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Dec 2013
Device: Pocketbook touch lux (623)
search/replace multiline regex

Hi,

I have a real lot of books all having the following head:

Code:
<head>
  <meta content="2009-03-15T01:30:38" name="date" />
  <meta content="OpenOffice.org/3.0$Linux OpenOffice.org_project/300m15$Build-9379" name="generator" />

  <title>Unknown</title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
  
<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
</style>
</head>

<body class="calibre">
which I want replace within each book with "my own" header but retaining the part

Code:
  <title>Unknown</title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
In the meantime I already have a little experience with regexes but here I am overextended.

Can anyone help me with a regex finding the first code?

With the replace function I'll not have any problems.

1000 thanks in advnce for your kind help!

Peter
Alt68er is offline   Reply With Quote