Subscribe
to our newsletter

 




 

This is a collection of frequently asked questions about TextPipe Lite. 

Online Demonstrations

The links below demonstrate how to perform common TextPipe Lite actions. If you have suggestions for other online demonstrations please contact us.

Problems viewing the demos? If you are running a firewall such as ZoneAlarm or privacy software that prevents popup windows, it may be inserting JavaScript code into the top of every page you view. The demonstration display software cannot cope with this alteration, so please disable this feature of your software in order to view them.

Questions

Other help resources

Answers

Why won't TextPipe Lite run from the command line?

(Try using the Command line wizard in the Tools menu) There are a number of possible answers. 

Firstly, the evaluation edition of TextPipe Lite always displays a dialog when it runs that requires operator intervention. This dialog is not in the registered versions.

Secondly, you may not have specified /G /Q at the end of the command line. This tells TextPipe Lite to run the current filter and exit when it has finished e.g.

"C:\Program Files\DataMystic\TextPipe Lite\textpipe.exe" /f=autorun.fll /g /q

Thirdly, you may have forgotten to correctly quote long filenames (e.g. those with spaces). You must use double quotes around the ENTIRE parameter. e.g.

"C:\Program Files\DataMystic\TextPipe Lite\textpipe.exe" "/f=long filename filter.fll" /g /q

See the notes in TextPipe Lite's help file under the command line topic.

Top

How can I search and replace within <form>...</form> tags?

If you want to search and replace inside <form> elements, use a pattern search and replace (set the search type to Pattern), for

<form>.*</form>

This finds all the text between <form> elements. Set the replacement text to

$0

This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us.

Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text inside the form elements.

Top

How can I search and replace everything after a particular character?

If you want to search and replace everything after a particular character in a file, use a pattern search and replace (set the search type to Pattern), for

(?<=CHAR).*?

Where CHAR is the particular character or string that needs to be found. Set the replacement text to

$0

This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us.

Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text after the particular character.

Top

How can I search and replace everything before a particular character?

If you want to search and replace everything before a particular character in a file, use a pattern search and replace (set the search type to Pattern), for

.*(?=CHAR)

Where CHAR is the particular character or string that needs to be found. Set the replacement text to

$0

This essentially performs no replacement at all - because '$0' is shorthand for 'the found text'. We are just using the search and replace to identify a section of text for us.

Next, add a new search and replace, and drag it INSIDE the original. You may have to drag the new filter to the right hand side of the tree view to force it to be dropped inside. This new search and replace acts only on the text found by the original search and replace, i.e. all the text before the particular character.

Top

Dragging and dropping a file onto a short cut doesn't work

Unfortunately with a short cut, the dragged filename is always appended to the existing command line (hence it comes after the /g /q when it must be before). The best way around this is to use a batch file like this:

In T.bat:

@echo off
"C:\Program Files\TextPipe Lite\textpipe.exe" "/f=C:\Documents and Settings\Simon Carter\My Documents\TextPipe Lite\My Filters/ipMon.fll" %1 %2 %3 %4 %5 %6 /g /q

Then add a short cut on the desktop for t.bat, and drag and drop files onto it. You might need to add double quotes around the %1 if you are using long filenames.

Top

Remove blank lines at the end of the file

Use a Perl pattern to search for:

(\r\n)*\z

And replace with nothing.

Top