Hi,
I actually don't think changing the pattern will work.  I will test it out for you.  The thing is, the fragment identifier (the "#" and everything that comes after it) generally does not get sent to the server.  Probably, the pattern should work *whether or not* the fragment is sent.