I tried your regex, and it worked for me. Maybe there is something else in the code around it which messes it up. But it seems to me that for your purposes you could leave out the (.*) bit, maybe that does the trick.
Else you might ask japhy about this, he'll surely be able to tell you more.