Find expression xx where expression yy follows:-

Suppose you need to match all the first names ending with last name Picasso. You could write the following pattern to solve it.

To experiment, navigate to the Regex101 sandbox I've created. This RegEx only works with Non-Deterministic Automata (NFA) regex engines.

Reading list

Well, now what?

You can navigate to more writings from here. Connect with me on LinkedIn for a chat.