From the course: Foundations of AI and Machine Learning for Java Developers

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Regular expressions and the relationship to ML

Regular expressions and the relationship to ML - Java Tutorial

From the course: Foundations of AI and Machine Learning for Java Developers

Regular expressions and the relationship to ML

- [Instructor] So noticing patterns are everywhere, I realized that I was already using patterns in my software code. Now, for many, many years as a Java programmer, or even earlier as a C programmer, I was using patterns in my own software by using regular expressions. And we know that regular expressions are a way of describing text patterns. They're like a mini language used for pattern matching. So in this particular example, we see a regular expression that tests whether a string is a valid URL or not. So while they are quite powerful, they're also very complicated. But what's really interesting is that regular expressions were invented way back in the early '50s, 1951 to be specific, and they were invented to experiment with AI. Now, prior to regular expressions, artificial neural networks were invented in the 1940s, which is by the way, way before the invention of the subroutine. So artificial neural networks or ANNs, they were created to investigate how the brain works. Now…

Contents