求 C# URL正则表达式

2025-01-20 03:37:02
推荐回答(2个)
回答1:

[Hh][Tt][Tt][Pp]://[^\s/.]+\.[^\s/.]+(?:\.[^\s/.]+)*/\S+

回答2:

string str="(?<=\\<\s*[aA]\s+href[=])(\S|[^>])*"