mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
Update AssetFixer.cs
This commit is contained in:
parent
492d44f364
commit
0935cc521f
@ -202,7 +202,7 @@ public partial class AssetFixer : Form
|
|||||||
{
|
{
|
||||||
//https://stackoverflow.com/questions/10576686/c-sharp-regex-pattern-to-extract-urls-from-given-string-not-full-html-urls-but
|
//https://stackoverflow.com/questions/10576686/c-sharp-regex-pattern-to-extract-urls-from-given-string-not-full-html-urls-but
|
||||||
List<string> links = new List<string>();
|
List<string> links = new List<string>();
|
||||||
var linkParser = new Regex(@"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=;]*)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
var linkParser = new Regex(@"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=;\[\]]*)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||||
foreach (Match m in linkParser.Matches(line))
|
foreach (Match m in linkParser.Matches(line))
|
||||||
{
|
{
|
||||||
string link = m.Value;
|
string link = m.Value;
|
||||||
|
Loading…
Reference in New Issue
Block a user