A very basic implementation, you can find the solution by searching online.
// A mobile phone number verification regular expression found online (may not be the latest) String mobileCheck = "(0|86|17951)?(13[0-9]|15[012356789]|17[0678]| 18[0-9]|14[57])[0-9]{8}";
// It can probably be implemented as follows, reading the file and concatenating it into a string is not given
A very basic implementation, you can find the solution by searching online.
// A mobile phone number verification regular expression found online (may not be the latest)
String mobileCheck = "(0|86|17951)?(13[0-9]|15[012356789]|17[0678]| 18[0-9]|14[57])[0-9]{8}";
// It can probably be implemented as follows, reading the file and concatenating it into a string is not given
New to learning programming? This is not difficult, just check it out
Use regular expressions