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?
You cannot really fully validate IMEI using a regex. The best you can do is just check that it's 15 digits.
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?