Special Characters: Capturing and Non-Capturing Groups
Let's learn about capturing and non-capturing groups with the help of an example.
We'll cover the following...
We'll cover the following...
Introduction
Groups are an incredibly useful part of regular expressions because they allow you to grab a portion of the matching pattern and use it in your code logic or reference it while doing a string replacement.
The groups you can grab and reference later are called capturing groups, which, as the name suggests, means you’re able ...