That works really well .. although I don't completely understand its logic.

Your telling it to start at ( /#myElement ) and then with the negated
character set, ( [^}]+ ) continue matching everything that is not a
closing bracket.. and keep doing this until finally it comes to the last
character defined which is the actual closing bracket ( }/; ).

David wrote:
[...]
>
> Your telling it to start at ( /#myElement ) and then with the negated
> character set, ( [^}]+ ) continue matching everything that is not a
> closing bracket.. and keep doing this until finally it comes to the last
> character defined which is the actual closing bracket ( }/; ).

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!