Lookahead is typically used to create a logical operator AND between two regular expressions.
For example, if a password must:
- a lower case letter,
- an upper case letter,
- a punctuation symbol,
- and be at least 6 characters long
then the following expression can be used to validate the password.