I need to write a regex that matches the string:
HELLO[ID]_world.NNN
Where:
- 'HELLO' is constant. It must always start with this word
- 'ID' is any number
- 'world' is anything
- 'NNN' is the sequence number in hexadecimal notation, i.e. '000' to 'FFF'
For example valid strings are:
HELLO[345]_something.123
HELLO[23]_BlaBla.FFF
What I have so far is:
\bHELLO\[[0-9]*\]_[a-zA-Z]*\.[0-9]{3}
If I am correct (and maybe I am not) this works for all examples except hexadecimal part.
Could you help me to write this regex?