2012-02-29 11:07:17 +00:00
|
|
|
# A collection of misc interesting regexps
|
|
|
|
|
2012-02-29 13:02:46 +00:00
|
|
|
# ISBN links with at least one line break (https://bugzilla.wikimedia.org/show_bug.cgi?id=29025)
|
2012-02-29 11:07:17 +00:00
|
|
|
(?:(?: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))
|
2012-02-29 13:02:46 +00:00
|
|
|
|
|
|
|
# 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))
|