Invisible characters in search replace list table

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

DFH
Posts: 654
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Invisible characters in search replace list table

Postby DFH » Sun Jan 24, 2016 8:19 am

It's quite possible to paste control characters such as tab directly into the replace list table.

They can appear invisible to the user, making it almost impossible to debug.
The invisibility is because the pasted tab becomes a zero width character.
Human readable copy reveals it as "\t", but the GUI doesn't show it as that.

Code: Select all

Perl pattern [abc] with [\tdef]
   [ ] Match case
   [ ] Whole words only
   [ ] Case sensitive replace
   [ ] Prompt on replace
   [ ] Skip prompt if identical
   [ ] First only
   [ ] Extract matches
   Maximum text buffer size 4096
   [ ] Maximum match (greedy)
   [ ] Allow comments
   [X] '.' matches newline
   [ ] UTF-8 Support

   [ ] Process longest strings first
   [ ] Simultaneous search

This caught me out earlier today.

Can you do something to prevent this?
Can you ensure that tabs other than the delimiter between search & replace columns get automatically converted to \t and displayed as such?

Best regards,

David
Attachments
Invisible tabs.zip
Test filter
(631 Bytes) Downloaded 53 times

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

Re: Invisible characters in search replace list table

Postby DataMystic Support » Thu Jan 28, 2016 3:39 pm

Sure. That sounds like a useful change. Other fields do modify the text on paste, but I'm not sure what code is against the search/replace filter.
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 4 guests