[eluser]sblaas[/eluser]
#<string> isn't in your "request uri" ( received server wise ) so you can't filter / regex / match on it.
I'm not sure if it's possible with htaccess though but i doubt it. #last is just a html anchor.
You can however substract the anchor with javascript so maybe a solution with ajax is something for ya.
[quote author="Mr. Pickle" date="1304427861"]Couldn't you make it easier for yourself and have the '#last' part in a seperate uri segment:
forums/The-Board-The-Thread-Is-In/The-Title-Of-The-Thread/123/123/#last
Anyway, a regex for your example(any length of numbers > 0 and #last at the end) should look something like this:
[0-9]{1,}#last$[/quote]