Moving data around from a file

Get help with installation and running here.

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

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

Moving data around from a file

Post by xyber »

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

Re: Moving data around from a file

Post by DataMystic Support »

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>
Post Reply