This regex http://regexlib.com/REDetails.aspx?regexp_id=523 will find all HTML elements.
You can try to modify the pattern and remove the elements you want to keep for your task from the pattern. Since you didn't follow our posting guidelines I'll leave the modifications up to you, the regex given was written for the .Net regex engine. If you are using a different platform you'll need to make the appropriate adjustments.
Your question is a little confusing as hypherlinks are created by tags just as everything else in HTML is so I'm not sure why the distinction is made. And space is not a HTML element so I don't know what that has to do with your task.
Michael
"In theory, theory and practice are the same. In practice, they are not."
Albert Einstein