Data Detection in Swift
I have a love/hate relationship with regular expressions. I love them because they’re great for examining text to find useful information and, often, to change the text in some way. I hate them because once you get beyond basic matching, they descend into bizarre write-only code that gives me flashbacks to my days writing Perl. In extreme cases they may well endanger the universe. And so we come to one of my recent coding issues: How can I find out if a string contains a valid email address?
I have a love/hate relationship with regular expressions. I love them because they’re great for examining text to find useful information and, often, to change the text in some way. I hate them because once you get beyond basic matching, they descend into bizarre write-only code that gives me flashbacks to my days writing Perl. In extreme cases they may well endanger the universe. And so we come to one of my recent coding issues: How can I find out if a string contains a valid email address?
https://www.vaporforums.io/thread/30?utm_source=newsletter_mailer&utm_medium=email&utm_campaign=weekly
Introduction to Server Side Swift with Vapor, Part 1--Hello World (Swift 4, Xcode9)
Introduction to Server Side Swift with Vapor, Part 1--Hello World (Swift 4, Xcode9)