We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41c8cc commit d423295Copy full SHA for d423295
1 file changed
Assets/Hypertext/Examples/RegexExample.cs
@@ -6,8 +6,8 @@ public class RegexExample : MonoBehaviour
6
{
7
[SerializeField] RegexHypertext text = default;
8
9
- const string RegexUrl = "http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?";
10
- const string RegexHashtag = "[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー]+";
+ const string RegexUrl = @"https?://(?:[!-~]+\.)+[!-~]+";
+ const string RegexHashtag = @"[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー]+";
11
12
void Start()
13
0 commit comments