copying data elsewhere inside html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

copying data elsewhere inside html

Postby nargiz » Thu Feb 26, 2009 8:30 am

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: 2164
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copying data elsewhere inside html

Postby DataMystic Support » Fri Feb 27, 2009 8:28 am

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>
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 5 guests