in reply to Regexp Confuzzelemt

#.*[^\?] is actually matching everything after the hash, then the c at the end, because [^\?] matches a single character that is NOT a question mark...

I think what you are looking for is

#([^?]+) # don't need \? in character class []
That will match 1 or more non question mark characters after a #

                - Ant
                - Some of my best work - (1 2 3)