Page 1 of 1

Suggestion for new filter 'Add Match Numbers'

Posted: Tue Nov 21, 2017 8:32 pm
by dfhtextpipe
The Add Line Numbers filter is already very useful.

In principle, the notion can be generalised to Add Match Numbers for pattern matching.
Add Line Numbers is then equivalent to matching the PCRE pattern

Code: Select all

^
for the Start of Line and adding the serial numbers just before the match position.

I therefore suggest this useful addition to the set of Add filters.

Best regards,

David

Re: Suggestion for new filter 'Add Match Numbers'

Posted: Mon Dec 04, 2017 7:49 am
by DataMystic Support
Can't you already achieve this with line numbers as a subfilter of a pattern match?

Re: Suggestion for new filter 'Add Match Numbers'

Posted: Mon Dec 04, 2017 7:43 pm
by dfhtextpipe
Can't you already achieve this with line numbers as a subfilter of a pattern match?
Only if you first make each instance of the pattern start a new line!

Aside: The requirement first arose for numbering unnumbered footnote tags.

My suggestion obviates that necessity.

David