Fix ThompsonMatcher deprecation in D
gnunn1
5 years ago
149 | 149 | enum REGEX_EMAIL = DEFS ~ "(?i:mailto:)?" ~ USER ~ "@" ~ EMAIL_HOST; |
150 | 150 | enum REGEX_NEWS_MAN = "(?i:news:|man:|info:)[-[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+"; |
151 | 151 | |
152 | import std.regex.internal.thompson: ThompsonMatcher; | |
153 | ||
154 | 152 | /** |
155 | 153 | * This replaces all instances of $x tokens with values |
156 | 154 | * from Regex match. The token $0 matches the whole match |