Regular Expressions 101

Sponsors

Library entries

0
pcre2

worksheet url

worksheet url
Submitted by anonymous - a year ago
0
python

AWS Arn matching

This pattern matches the AWS's ARN pattern
Submitted by anonymous - a year ago
0
pcre2

propub3r6espa33w.PT

propub3r6espa33w.PT
Submitted by anonymous - a year ago
0
pcre2

propub3r6espa33w.PT

-+--+#0fffffffff00fff
Submitted by anonymous - a year ago
0
pcre2

regex_licence_bl

sdf
Submitted by guib - a year ago
0
pcre2

Precision 5.1

Numbers with 5.1 precision
Submitted by anonymous - a year ago
0
python

regex_contrat_flex_bl

guif
Submitted by guif - a year ago
0
python

regex_sous_sol_bl

guif
Submitted by guif - a year ago
0
pcre2

SOURCEDOC_SHAPE_PATTERN

o
Submitted by anonymous - a year ago
0
python

regex_axe_bl

guif
Submitted by guif - a year 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 - 2 years ago