mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
e0838db315
tweaked the multi-line ISBN regexp slightly.
8 lines
538 B
Plaintext
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))
|