Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?::|#|are|(?:\b|\D)(?:\d{1,2}|1\d{2})?\s?and|(?:\b|\D)(?:\d{1,2}|1\d{2})\s?,|&)\s?(?:\d{1,2}|1\d{2})\b(?:\s?-\s?(?:\d{1,2}|1\d{2})(?=\D))?(?:\s?,\s?(?:\d{1,2}|1\d{2})(?=\D)(?:\s?-\s?(?:\d{1,2}|1\d{2})(?=\D))?)*|^\s?(?:\d{1,2}|1\d{2})\s?(?:\.(?=\D)|$|:)
/
gmi

Description

Used to search through the comments under the drawfriend post for numbers related to the images

Submitted by RakTom - 8 years ago