I've been attempting to create a regex pattern for a 16-bit signed integer (from -32768
to 32767
) based on the information from this 32-bit integer reference.
So far, my attempt looks like this:
^-?([0-9]{1,5}|32[0-6]{3}|32[0-6]{2}|327[0-5][0-8])$|^(-32768)$
Unfortunately, it's not working properly.
Any suggestions or guidance would be greatly appreciated.