Learn about regular expression beginning and end boundaries.
- [Instructor] Boundaries enable us to locate a regular…expression at a specified position within a search string.…These boundaries include the beginning or end…of a line, a word or other boundaries listed…in this display.…That's our search string.…Let's go back to Hamlet, To Be or Not To Be.…For our boundaries test we'll first start and see…if we can find the word shocks at the beginning of a line.…Let's run this test.…Well, we get a green but no output.…
So this indicates that the test ran successfully…but we're weren't able to find shocks…at the beginning of a line.…Now, let's see if we can find shocks at the end of a line.…Also, not this syntax.…This indicates that we're going…to search across multiple lines.…And this time we find that shocks does appear…starting at index 295.…And that corresponds to the heartache…and the thousand natural shocks.…
Now let's change the pattern and see what happens…if we try to test for shocks at the beginning…and the end of the word.…Here we find out that shocks…starting at 295 and ending at 302.…
- The IMQAV model
- Downloading software
- Installing and setting up a Java coding environment
- Mock tests
- Code coverage
- Using windows, views, and modes in IntelliJ IDEA
- Creating classes and attributes
- Creating constructors
- Casting variables
- Matching literals with regular expressions
- Regular expressions
- Design patterns
Skill Level Intermediate
Java: Database Integration with JDBCwith David Gassner2h 51m Intermediate
NumPy Data Science Essential Trainingwith Charles Kelly3h 54m Intermediate
1. Getting Started with Java
2. Test-Driven Development
3. IntelliJ IDEA
4. Object-Oriented Java
6. Regular Expressions (Regex)
8. Design Patterns
9. Applying Data Science
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.