Can someone help me with php regex that would scan a list of domains and remove any domains that have numbers, dashes, and over 15 characters long?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Loop over them and test with preg_match. As for regex, \d matches digits, and .{16,} will match strings that are 16 characters or longer. – will match the -, lol. You can use | as the OR operator.
Put it all together and you get: