Introduction
In this lab, you will learn how to check if a string matches a regular expression in Java. We will start by understanding the basics of regular expressions and how to create a simple pattern using the java.util.regex package.
You will then explore the Pattern and Matcher classes to perform match operations. Finally, you will apply your knowledge to test regex patterns with user input, gaining practical experience in using regular expressions for string validation and manipulation in Java.



