JavaScript: What's the difference between a positive look ahead and a non-capturing group? : <p>If I get it right then a positive look ahead ( ?= ) as well a non-capturing group ( ?: ) are used for to excluse a part of the string in the final match-results. </p>

<p><strong>What is the difference between the a lookahead and a non-capturing group?</strong></p>

<p>Can anyone explain? Preferable with an easy understandable example?</p>
