diff --git a/bundle/bundle--mk.el b/bundle/bundle--mk.el index f57340aa..a153c451 100644 --- a/bundle/bundle--mk.el +++ b/bundle/bundle--mk.el @@ -9,23 +9,24 @@ "Locally mirror a website using `wget -mkEpnp `") (defvar mk/useful-regex - '(("match any word or space that precede the :" . "[\w\s]+:") - ("search for anything in square brackets" . "\[.*\]") - ("[A-Za-z]+" "upper and lowercase english alphabet") - ("[0-9]" "numbers from 0 to 9") - ("[A-Za-z\-\.]" "upper and lowercase english alphabet, - and .") - ("(a-z)" "a, - and z") - ("(\s+|,)" "spaces or a comma") - ("#\w+" "find hashtags") - ("([@|#]\w+)" "matches both mentions (@) and hashtags") - ("(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" "email regex") - ("-?\d+(\.\d*)?" "matching decimal numbers") - ("(?:http|https|ftp|mailto|file|data|irc):\/\/[A-Za-z0-9\-]{0,63}(\.[A-Za-z0-9\-]{0,63})+(:\d{1,4})?\/*(\/*[A-Za-z0-9\-._]+\/*)*(\?.*)?(#.*)?" "matching urls") - ("^\d{4}/(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])$" "matching dates yyyy/mm/dd") - ("^(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])/\d{4}$" "matching dates mm/dd/yyyy") - ("^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/\d{4}$" "matching dates dd/mm/yyyy") - ("<.+>" "matching html") - ("<\/?(?:p|a|b|img)(?: \/)?>" "matchig specific tags"))) + '(("match any word or space that precedes the :" . "[\\w\\s]+:") + ("search for anything in square brackets" . "\\[.*\\]") + ("upper and lowercase English alphabet" . "[A-Za-z]+") + ("numbers from 0 to 9" . "[0-9]") + ("upper and lowercase English alphabet, - and ." . "[A-Za-z\\-\\.]+") + ("a, - and z" . "(a-z)") + ("spaces or a comma" . "(\\s+|,)") + ("find hashtags" . "#\\w+") + ("matches both mentions (@) and hashtags" . "([@|#]\\w+)") + ("email regex" . "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$") + ("matching decimal numbers" . "-?\\d+(\\.\\d*)?") + ("matching urls" . "(?:http|https|ftp|mailto|file|data|irc):\\/\\/[A-Za-z0-9\\-]{0,63}(\\.[A-Za-z0-9\\-]{0,63})+(:\\d{1,4})?\\/*(\\/*[A-Za-z0-9\\-._]+\\/*)*(\\?.*)?(#.*)?") + ("matching dates yyyy/mm/dd" . "^\\d{4}/(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])$") + ("matching dates mm/dd/yyyy" . "^(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])/\\d{4}$") + ("matching dates dd/mm/yyyy" . "^(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/\\d{4}$") + ("matching HTML" . "<.+>") + ("matching specific tags" . "") + ("ISO 8601 Date Format (YYYY-MM-DD)" . "\\([0-9]{4}\\)-\\([0-1][0-9]\\)-\\([0-3][0-9]\\)"))) ;; (defun mk-show-modeline () ;; (interactive)