In this part, we are going to explore another advanced technique supported in a regular…
Hello, and welcome back. In this part, I’m going to discuss greedy and…
Java RegEx: Part 10 — Look-Behind
In the last part, we had some examples using look-ahead techniques.
In this part, we are going to discuss a very powerful technique in regular expression called Look-ahead.
The basic idea of look-ahead is similar in some situations in real life. For instance, you want to visit a friend, but you are not sure whether…
Java RegEx: Part 8 — Backreferences
Consider the following cases:
We want to search for a sub-string, but only if it appears at the beginning or at…
In the previous part, we used regular expressions and the String.matches() method to check for the validity of the input…
In this part, we are going to explore methods that can be used to replace and extract text from a string, which are very common tasks in programming in general, not just in Java.