Suggestion for new filter 'Add Match Numbers'

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Suggestion for new filter 'Add Match Numbers'

Post by DFH » Tue Nov 21, 2017 8:32 pm

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

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

Re: Suggestion for new filter 'Add Match Numbers'

Post by DataMystic Support » Mon Dec 04, 2017 7:49 am

Can't you already achieve this with line numbers as a subfilter of a pattern match?
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

DFH
Posts: 746
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Suggestion for new filter 'Add Match Numbers'

Post by DFH » Mon Dec 04, 2017 7:43 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests