database.registerUnknown.regex pattern for IMEI validation

jafar habibi3 days ago

I need to enable database.registerUnknown , so that devices register on server automatically.
but I also need to enable database.registerUnknown.regex to validate only valid IMEI on the server to prevent registering unknown TCP connections.
so could anyone help for proper regex for valid IMEI?

Anton Tananaev3 days ago

You cannot really fully validate IMEI using a regex. The best you can do is just check that it's 15 digits.