Skip to content

Commit d423295

Browse files
committed
Update example Regex
1 parent a41c8cc commit d423295

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/Hypertext/Examples/RegexExample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ public class RegexExample : MonoBehaviour
66
{
77
[SerializeField] RegexHypertext text = default;
88

9-
const string RegexUrl = "http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?";
10-
const string RegexHashtag = "[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー]+";
9+
const string RegexUrl = @"https?://(?:[!-~]+\.)+[!-~]+";
10+
const string RegexHashtag = @"[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー]+";
1111

1212
void Start()
1313
{

0 commit comments

Comments
 (0)