Community Patterns

Community Library Entry

-2

Regular Expression
Created·2015-05-22 22:38
Flavor·ECMAScript (JavaScript)

/
(^[a-zA-Z][\w]*)\s+(\d+)\s?-\s?(\d+)?\s?\/?\s?(\d+|\*)?
/
Open regex in editor

Description

Matches the Content-Range response header format <unit> <start>-[end]/[total|*]

Submitted by mdezem