Use Java's Pattern and Matcher classes to validate inputs using regular expressions in a way that's more modular and efficient than using the String.matches() method.
Accompanying Lecture Notes: https://terminallearning.com/java/val...
Regex Tester https://regexr.com/ by gskinner http://gskinner.com/
Key Moments:
00:00 Introduction
02:07 Pattern Class
04:29 Matcher Class
matches() 6:22
lookingAt() 7:58
find() 8:43
summary 10:14
10:48 Validation Steps
11:31 Example
26:58 Better Version of Example
31:48 Summary
RegEx 1: Introduction • Basic Regular Expressions 1 - Introdu...
RegEx 2: Character Classes • Basic Regular Expressions 2 - Charact...
RegEx 3: Quantifiers and Anchors • Basic Regular Expressions 3 - Quantif...
RegEx 4: Meta-Characters & OR Operator • Basic Regular Expressions 4 - Meta-Ch...
RegEx 5: Capture Groups • Basic Regular Expressions 5 - Capture...
RegEx 6: Java - String.matches() Method • Basic Regular Expressions 6 - Java: S...
RegEx 7: Java - Pattern, Matcher Classes • Basic Regular Expressions 7 - Java: P... (this video)
-----------------------------
Copyright © Wendi Jollymore 2022. Any illegal reproduction of this content is prohibited and will result in immediate legal action.