blob: 34b7b41ae91acdc05fe6718793b23acf53baf66a [file] [log] [blame]
Akron61948ef2022-03-30 14:07:57 +02001define URLChar [Char|[Sym - ["<"|">"|%"]]];
2
3define Dot "."|[["["|"("] "d" "o" "t" [")"|"]"]] .o. Caseinsensitive;
4define At "@"|[["["|"("] "a" "t" [")"|"]"]] .o. Caseinsensitive;
5
6define TldEnd [{org}|{de}|{com}] .o. Caseinsensitive;
7
8! Very relaxed URL scheme, not based on the strict Lucene implementation
9define URL [ [ [{http} (s) | {ftp} | {file}] ":" "/" "/"] | [{www} Dot] ]
10URLChar [URLChar|SP]* URLChar
11.o. Caseinsensitive;
12
13define Domain Char+ [Dash Char+]* Dot TldEnd;
14
15! Email addresses
16define Email URLChar+ At URLChar+ [Dot URLChar+]+;
17
18! Twitter user, hashtag, Google+
19define SNS ["@"|"#"|"+"] Char+;
20
21define FileEnd [
22 [{htm} ("l")]|
23 [{doc} ("x")]|
24 {pdf}|
25 ["j" "p" ("e") "g"]|
26 ["m" "p" ["3"|"4"]]|
27 {ogg}|
28 {png}|
29 [{ppt} ("x")]|
30 {avi}|
31 {txt}|
32 {xls}|
33 {xml}|
34 {aac}|
35 {gif}|
36 {exe}
37 ] .o. Caseinsensitive;
38
39define File (( AsciiLetter ":" %\ | "/" ) [ Char | "_" | "-" | Char [ %\ | "/" ] ]*) [Char | "-" | "_" ]+ "." FileEnd;