From catalog/abnf-syntax.abnf rule: num-val

Definition

num-val = "%" ( bin-val / dec-val / hex-val )

hex-val = "x" 1*HEXDIG [ 1*( "." 1*HEXDIG ) / ( "-" 1*HEXDIG ) ]

dec-val = "d" 1*DIGIT [ 1*( "." 1*DIGIT ) / ( "-" 1*DIGIT ) ]

bin-val = "b" 1*BIT [ 1*( "." 1*BIT ) / ( "-" 1*BIT ) ]

    

Info

Rulename
num-val
Dependencies
BIT, bin-val, DIGIT, dec-val, HEXDIG, hex-val, num-val
Used Builtins
BIT, DIGIT, HEXDIG

Alphabet

Translations

Railroad Diagram

num-val % bin-val dec-val hex-val

ECMAScript/JavaScript Regular Expression Literal

/^%([Dd][0-9]+(|-[0-9]+|\.[0-9](\.?[0-9])*)|[Bb][0-1]+(|-[0-1]+|\.[0-1](\.?[0-1])*)|[Xx][0-9A-Fa-f]+(|-[0-9A-Fa-f]+|\.[0-9A-Fa-f](\.?[0-9A-Fa-f])*))$/

Swift Regular Expression

%([Dd][0-9]+(|-[0-9]+|\.[0-9](\.?[0-9])*)|[Bb][0-1]+(|-[0-1]+|\.[0-1](\.?[0-1])*)|[Xx][0-9A-Fa-f]+(|-[0-9A-Fa-f]+|\.[0-9A-Fa-f](\.?[0-9A-Fa-f])*))

POSIX Extended Regular Expression

%([Dd][0-9][0-9]*(|-[0-9][0-9]*|\.[0-9](\.?[0-9])*)|[Bb][0-1][0-1]*(|-[0-1][0-1]*|\.[0-1](\.?[0-1])*)|[Xx][0-9A-Fa-f][0-9A-Fa-f]*(|-[0-9A-Fa-f][0-9A-Fa-f]*|\.[0-9A-Fa-f](\.?[0-9A-Fa-f])*))