I'm browsing through the code for twitter bootstrap and I've coma across this snippet a few times.
href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
Regexes are my blindspot and I can't figure out most of them. What is it replacing? Is it whitespace after the #?
Side note. Can anyone recommend a good source for regex tuition?