Regular Expressions 101

Community Patterns

Match Content-Range response header

-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