Invisible characters in search replace list table

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
DFH
Posts: 716
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Invisible characters in search replace list table

Post by 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 67 times

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

Re: Invisible characters in search replace list table

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

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests