copying data elsewhere inside html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
nargiz
Posts: 6
Joined: Tue Feb 03, 2009 2:07 am

copying data elsewhere inside html

Post by nargiz »

Hi,
I'm trying to copy part of data in the html file to elsewhere (inside <title></title> tags) in the same html file.

I have:
...
<title>Title</title>
</head>
<body>
text
<p class ="author">author, affiliation</p>
other text
</body>
...
and I need:
<title>Title, author</title>
</head>
<body>
text
<p class="author">author, affiliation</p>
other text
...


Really appreciate your help,
N
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copying data elsewhere inside html

Post by DataMystic Support »

Match EasyPattern:

Code: Select all

<title>[ capture(1+chars) as 'title' ]</title>
</head>
<body>
text
<p class ="author">[ capture(1+chars) as 'author'], affiliation</p>
other text
</body>
Replace with:

Code: Select all

<title>@title, @author</title>
</head>
<body>
text
<p class ="author">@author, affiliation</p>
other text
</body>
Post Reply