Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-12-31 14:18
Flavor·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
Open regex in editor

Description

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

Submitted by RakTom