-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathLink.regex.txt
More file actions
14 lines (13 loc) · 722 Bytes
/
Link.regex.txt
File metadata and controls
14 lines (13 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# Matches ANSI Hyperlink
\e # An Escape
\] # Followed by a right bracket
8[^;]{0,};; # Followed by 8 and two semicolons
(?<Uri>(?:.|\s){0,}?(?=\z|\e)) # Followed by the uri
\e # Followed by an escape
\\ # Followed by a slash
(?<Text>(?:.|\s){0,}?(?=\z|\e)) # Followed by the link text
\e # Followed by an escape
\] # Followed by a right bracket
8[^;]{0,};; # Followed by 8 and two semicolons
\e # Followed by an Escape
\\ # Finally a closing slash