.*. You can use something like
^(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)?(\/?|\#[-\d\w._]+?)$
to authorize "really remote" URLs. See documentation for more details.