Page 1 of 1

FoxReplace anchor links

Posted: Tue Jul 22, 2014 11:33 pm
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.

Re: FoxReplace anchor links

Posted: Wed Jul 23, 2014 5:10 am
by Kappa
Oh, nifty!