I want to accept a decimal number between 0 and 255. This is the best I can come up with:
fragment my_token :
('0'..'9') | // 0 -> 9
('1'..'9' '0'..'9') | // 0 -> 99
('1' '0'..'9' '0'..'9') | // 100 -> 199
('2' '0'..'4' '0'..'9') | // 200 -> 249
('25' '0'..'5'); // 250 -> 255
but I am just a clueless n00b. Surelry there is a better way?