mediawiki-extensions-Visual.../tests/parser/dumpGrepPatterns/misc.txt

8 lines
538 B
Plaintext
Raw Normal View History

# 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))