Regular Expressions 101

Sponsors

Library entries

0
pcre2

test

Testing for sharing
Submitted by me - 6 months ago
0
pcre2

Date match on multiple formats

Date match on multiple formats
Submitted by anonymous - 6 months ago
0
java

Email

Test e-amil
Submitted by uk - 6 months ago
0
javascript

javascript regex question

问题
Submitted by anonymous - 6 months ago
0
javascript

Hex Checker

Checks if a string contains a hex code
Submitted by anonymous - 6 months ago
0
pcre2

Get first value in xml tag

/^(label=\")(.+)(" length.*)(\/>)/gm
Submitted by Stephen - 6 months ago

calibre

Vote

0

Regular Expression
pcre2

/
^(?P<series>[(][^_-]+?[)])?[\s]*(?P<author>(?! [-]).*?)([\s]+?-[\s]*)(?P<title>[^\(]*?)(?P<titletail>[\s]*?)((?P<comments>[\(](?:[\s]*(((?P<published>[12][\d]{3,3})\s*)((?=([,\)]))))?)?((?P<prepublisher>[\w]*?[,-]?)([,]?[\s]*((?P<publisher>[-|~'&%$#"!\w\s]*(([a-zA-Z]+)[-|~'&%$#"!\w\s]*))(?!(([\d-]{11}-?([x]|[\d])[\s]*[\)])))))?(?P<isbn>([,]?[\s]*(?P<isbntag>(?i)ISBN[-]?1(?:(?P<is10>0)|3)?[:\s])?\s*(?(isbntag)(?(is10)((?=[\d-]{11}-[\d|x][\s]*[\)])(?P<isbn10>\d{1,5}[ -]\d{1,7}[ -]\d{1,6}[ -](?:\d|x)))|((?:(?=[\d-]{17}[\s]*[\)])(?P<isbn13>97(?:8|9)[ -]\d{1,5}[ -]\d{1,7}[ -]\d{1,6}[ -]\d))))|(?:(?=(([\d-]{11}-([\d]|[x]))[\s]*[\)]))(?P<ISBN10>\d{1,5}([ -])\d{1,7}[ -]\d{1,6}[ -](?:\d|x))|(?:(?=[\d-]{17}[\s]*[\)])(?P<ISBN13>97(?:8|9)[ -]\d{1,5}[ -]\d{1,7}[ -]\d{1,6}[ -]\d)))))?)(?=([\s]*[,\)])))?(?P<tooManyCommasOrOnlyDigits>.*)[\s]*[\)]))*?[.](?P<extension>[[:alpha:]]+)$
/
mgD

Description

Loading markdown...
Submitted by anonymous - a year ago