mediawiki-extensions-Visual.../tests/parser/dumpGrepPatterns/misc.txt
Gabriel Wicke e0838db315 Capturing the regexp is no longer necessary, and speeds up the grepper. Also
tweaked the multi-line ISBN regexp slightly.
2012-02-29 13:02:46 +00:00

8 lines
538 B
Plaintext

# A collection of misc interesting regexps
# ISBN links with at least one line break (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025)
(?:(?:RFC|PMID)[ \t\n\r\f]*[\n\f\r]+[ \t\n\r\f]*([0-9]+)|ISBN[ \t\n\r\f]*[\n\f\r]+[ \t\n\r\f]*(\b(?:97[89][ -]?)?(?:[0-9][ -]?){9}[0-9Xx]\b))
# ISBN links with at least two line breaks (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025)
(?:(?:RFC|PMID)[ \t\n\r\f]*(?:[\n\f\r][ \t\n\r\f]*){2,}([0-9]+)|ISBN[ \t\n\r\f]*(?:[\n\f\r][ \t\n\r\f]*){2,}(\b(?:97[89][ -]?)?(?:[0-9][ -]?){9}[0-9Xx]\b))