A regular expression that matches the shape “#100”

Time:2021-10-20

I want to match the shape

#00
#01
#02
……………………..

#116
#117

There are more than 100 characters in total, and those beyond this range do not match,

How do you write it? I hope you can give me some advice.

Copy codeThe code is as follows:
/^#[0-9][0-9][0-7]?/

[0-7]? It means that the last number is between [0-7] at most,? 0 or more matches, but if the data #997 is also matched