Last active
June 1, 2017 09:03
-
-
Save liruqi/2b6825affceb947d00d1ff58d4bb5724 to your computer and use it in GitHub Desktop.
shadowsocks uri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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