I am a community elected moderator on Super User.
You may consider how to ask a question.
You might also want to use the right tools for the job, rather than pounding a nail with an old shoe or glass bottle.
But above everything else, please, never use regex to parse HTML. Crawling abominations from the depths await those who venture down that path...
Lastly, remember the golden rule of question migrations.