Skip to content

Instantly share code, notes, and snippets.

@liruqi
Last active June 1, 2017 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liruqi/2b6825affceb947d00d1ff58d4bb5724 to your computer and use it in GitHub Desktop.
Save liruqi/2b6825affceb947d00d1ff58d4bb5724 to your computer and use it in GitHub Desktop.
shadowsocks uri
public static readonly Regex
UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>\S+))?", RegexOptions.IgnoreCase),
DetailsParser = new Regex(@"^((?<method>.+?):(?<password>.*)@(?<hostname>.+?):(?<port>\d+?))$", RegexOptions.IgnoreCase);
let detailsParser = "([a-zA-Z0-9-_]+):(.*)@([a-zA-Z0-9-_.]+):(\\d+)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment