Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
ECMAScript (JavaScript)

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

Description

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

Submitted by mdezem - 9 years ago