FoxReplace anchor links

If it's germane, yet doesn't fit into another category, it can go here.
Post Reply
User avatar
Lambda
Posts: 1021
Joined: Fri Mar 28, 2014 9:39 am
Pronouns: She, her
Contact:

FoxReplace anchor links

Post by Lambda »

I use the following FoxReplace substitution:

HTML: Input & Output
Type: Regular expression
Replace:

Code: Select all

(#cmt[0-9]+)">link</a>\)
With:

Code: Select all

$1">link</a>) (<a href="$1">anchor</a>)
The effect is that the (link) on each post becomes (link) (anchor), with the (anchor) being an anchor link to that post's position on the current page. This is useful for producing links like this or this. More prosaically, it makes it easier to find where you left off when you refresh the page.
Kappa
Posts: 3554
Joined: Fri Mar 21, 2014 5:47 pm
Pronouns: 'He' or 'she', interchangeably
Location: under a pile of Jokers
Contact:

Re: FoxReplace anchor links

Post by Kappa »

Oh, nifty!
Post Reply