Moving data around from a file

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

xyber
Posts: 17
Joined: Sat Feb 20, 2010 5:34 am

Moving data around from a file

Postby xyber » Mon Mar 01, 2010 9:58 pm

Hey there,

I am wondering if textpipe is able to give a pattern like a variable name and if we can move this variable around from in the file. For example, if i have this html file, can i move the text "Welcome to Streetdirectory.in" outside of the body tag? Basically i want to know if its possible to move data around from the file that it is being processed.

Code: Select all

<html>
<head>
<title>Welcome to StreetDirectory.com</title>
</head>
<Body><H4> Welcome to Streetdirectory.in</H4>
</body>
</html>

Thank you.

Rgrds.

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Moving data around from a file

Postby DataMystic Support » Tue Mar 02, 2010 10:40 am

Yes, but you must match the desired text as well as its target location in one shot.

e.g. to move some body text into the title tag:

Code: Select all

<html>
<head>
<title>[ 1+ chars ]</title>
</head>
<Body><H4>[ capture( 1+ chars ) ]</H4>
</body>
</html>


Replace with

Code: Select all

<html>
<head>
<title>$1</title>
</head>
<Body><H4>$1</H4>
</body>
</html>
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: Yahoo [Bot] and 7 guests