Suggestion for new filter 'Add Match Numbers'

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

Suggestion for new filter 'Add Match Numbers'

Post 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
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Suggestion for new filter 'Add Match Numbers'

Post by DataMystic Support »

Can't you already achieve this with line numbers as a subfilter of a pattern match?
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Suggestion for new filter 'Add Match Numbers'

Post 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
David
Post Reply