Isn't it ironic, as soon as I post this I find an answer. So if you are looking for a matching pattern to do this, the following seems to work:
(?:\s|\A)[##]+([A-Za-z0-9-_]+)
I am going to do a lot more testing with this to see if there are any edge cases that are outside the scope of this expression and will report back if I find any.
Daniel Dura
2009-08-27 18:12:45