-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatterns.regex
More file actions
39 lines (26 loc) · 851 Bytes
/
patterns.regex
File metadata and controls
39 lines (26 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Match (/page/...) URLs
\/page\/[\w-]+(?:\d+)?\)?
# Match (/s.../product/...) URLs
\(\/s\d+\/product\/[^\s)]+\)
# Match /product/... ending with parentheses
\/product\/[\w-]+(?:\d+)?[^)]*\)
# Match (/producttype/...) URLs
\/s\d+\/producttype\/[\w-]+(?:\d+)?[^)]*\)
# Match numbers enclosed in quotes, e.g., :1234"
\s*\d+\s*"
# Match markdown-like bold and backslash, e.g., **\
\*\*\s*\\
# Match [[...: pattern
\[\[([^:]+):
# Match image metadata, e.g., [[image..."... or [[image:1234"
([\[]{2})([^:]+)(:)(\s)*(\d)*(\s)*(")
or
\[\[[^:]+:\s*\d*\s*"
# Match "]]" pattern with optional numbers and separators
((")(\s)?((\d)+)?((,(\s)?\d+)?)+)([\]]{2})
# Match {...} objects
\{[^}]*\}
# Match HTML-like opening and closing tags ??
<(/?)([a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*)?>
# Match mailto links
mailto:[\w.%+-]+@[\w.-]+\.(ch|it|com|de|fr|nl|be)