Misleading log output lines

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Misleading log output lines

Post by DFH » Mon Apr 27, 2020 11:38 pm

When the Replace filter is used to Send variable N to subfilter the corresponding log output line is:
2020-04-27 14:29:24,Info, 0 replace(s) performed, 150 skipped for pattern match [^<chapter( osisID="Ps\.\d+)">]
2020-04-27 14:29:24,Info, Capture text to variable @osisID
It seems to me that "150 skipped" is simply wrong.
It should have output "150 pattern matches were processed".

David

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

Re: Misleading log output lines

Post by DataMystic Support » Tue Sep 29, 2020 7:01 pm

Hi David - can you please provide your filter and test data for this?

I tried this on the sample trial input text:

Code: Select all

Perl pattern [([aeiou])(.)] and Send variable 2 to subfilter
|  [ ] 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
|  [X] UTF-8 Support
|
|--Add left margin [[]
|   
+--Add right margin []]
    
And it worked fine for me.

Code: Select all

Info	2020-09-29 18:59:54	93 replace(s) performed for pattern match [([aeiou])(.)]
Regards,

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads

Post Reply