Question - What is lookahead in Regular expressions?
Answer -
It is working towords to the right to see if match is exist
Positive Lookahead:
- If successful match to the right
- positive lookahead is specified with ( ?=...)
- Ex: (?=\d) successful where digit comes right
Negative Lookahead:
- If successful not match to the right
- positive lookahead is specified with ( ?!=...)