Warnings in the replace filter, etc

Get help with installation and running here.

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

Post Reply
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Warnings in the replace filter, etc

Post by dfhtextpipe »

One neat thing about UI for the Replace filter is that you can get some helpful messages like,
  • "Error: Find string is blank",
    "\ at end of pattern",
    "missing )"
    "missing terminator ] for character class"
    "Warning: Search string ends in white space".
Suggestion:

When using Perl pattern matching with UTF-8 support ticked, a known problem can occur when you also have the Case sensitive replace option ticked. This is because the whole topic of character case is not generally applicable for a wide range of Unicode characters.

I therefore suggest that the UI for the Replace filter be enhanced to include the message,
"Warning: Case sensitive replace may give unexpected results for UTF-8 patterns",
i.e. when both the above conditions are met.

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

Re: Warnings in the replace filter, etc

Post by DataMystic Support »

Thanks David,

The current system does not support warnings - errors like this stop the compile/running of filters.

I've added it to the help file under both the utf-8 and Case Sensitive Replace sections.
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Warnings in the replace filter, etc

Post by dfhtextpipe »

Simon,

I'm thinking of edit time warnings, not compile or run time.

cf. One of the existing GUI notifications at edit time is prefixed as "Warning: ..."

The observed unexpected outcomes are not prevented by the engine, so such a warning should be possible.

The circumstances are acute when the replace includes hexadecimal byte codes.

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

Re: Warnings in the replace filter, etc

Post by DataMystic Support »

I understand - that can (and will) be done.
Post Reply