Page 1 of 1

Misleading log output lines

Posted: Mon Apr 27, 2020 11:38 pm
by dfhtextpipe
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

Re: Misleading log output lines

Posted: Tue Sep 29, 2020 7:01 pm
by DataMystic Support
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])(.)]