7 Module implementing functions used by several IRC objects. |
7 Module implementing functions used by several IRC objects. |
8 """ |
8 """ |
9 |
9 |
10 import re |
10 import re |
11 |
11 |
12 from PyQt6.QtCore import QTime, QCoreApplication |
12 from PyQt6.QtCore import QCoreApplication, QTime |
13 from PyQt6.QtWidgets import QApplication |
13 from PyQt6.QtWidgets import QApplication |
14 |
14 |
15 from eric7 import Preferences, Utilities |
15 from eric7 import Preferences, Utilities |
16 |
|
17 |
16 |
18 __UrlRe = re.compile( |
17 __UrlRe = re.compile( |
19 r"""((?:http|ftp|https):\/\/[\w\-_]+(?:\.[\w\-_]+)+""" |
18 r"""((?:http|ftp|https):\/\/[\w\-_]+(?:\.[\w\-_]+)+""" |
20 r"""(?:[\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)""" |
19 r"""(?:[\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)""" |
21 ) |
20 ) |