XF 1.4 Help needed with a BB Code Media Site

I'm not great at setting up media sites (I suck at regex I guess >>)

I want to allow my users to use FFXIV's new tooltip codes. I've already embedded the JS needed and verified it works when I manually parse HTML in a post, however I want to see if I can make a media site automatically detect and parse the HTML for normal users.

Here is a link to what I am talking about.

This is an example of what a link might look like.

<a href="http://na.finalfantasyxiv.com/lodestone/playguide/db/item/598abb7dd01/" class="eorzeadb_link">Excalibur Zeta</a>
There should be 3 fields that have variables.

na.finalfantasyxiv.com/lodestone/playguide/db/item/598abb7dd01/ and the name of the item ...>Excalibur Zeta</a>