files with no-text

Get help with installation and running here.

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

Post Reply
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

files with no-text

Post by nikolas1612 »

got a number of files. some of them are blank (having no text inside, 0 bytes). Can I somehow identify these files by TP and write a certain phrase inside them?
So far it seems TP doesn't process such files at all.

Is there any way to identify a blank file by perl regex? (\A\z or smth of the kind)? Thanks.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: files with no-text

Post by DataMystic Support »

You could use a perl regex of

Code: Select all

^$
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Re: files with no-text

Post by nikolas1612 »

It doesn't work.
At least in search-&-perlace filter

The project demonstrating that is attached
Attachments
no-text.rar
(516 Bytes) Downloaded 1015 times
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: files with no-text

Post by DataMystic Support »

I've attached a work-around.

Naturally you can disable the prompt when you get it doing what you need.
Attachments
detect empty file.zip
(747 Bytes) Downloaded 830 times
Post Reply