Remove user name when copying a reply link

If I copy any reply post, it will append ?u=cems at the end of URL. This can be used for tracking if someone paste it somewhere else and forgot removing it.

I need to know the regex, cause there are no direct settings for this. I could not find it tbvh.