Positive and Negative Lookahead
Summary
- Lookaheads are patterns that tell JavaScript to look-ahead in a string to check for patterns further along.
- A positive lookahead will look to make sure the element in the search pattern is there, but won’t actually match it.
- A negative lookahead will look to make sure the element in the search pattern is not there.