PHP parsing textarea for domain names entered (separated by spaces, commas, newlines) <p>For my users I need to present a screen where they can input multiple domain names in a textarea. The users can put the domain names on different lines, or separate them by spaces or commas (maybe even semicolons - I dont know!)</p> <p>I need to parse and identify the individual domain names with extension (which will be .com, anything else can be ignored).</p> <p>User input can be as:</p> <p>asdf.com</p> <p>qwer.com</p> <p>AND/OR</p> <p>wqer.com, gwew.com</p> <p>AND/OR</p> <p>ertert.com gdfgdf.com</p> <p>No one will input a 3 level domain like www.abczone.com, but if they do I'm only interested in extracting the abczone.com part. (I can have a separate regex to verify/extract that from each).</p>