+ 3

How to use (?:..) in regex

I searched about this in regular expression tutorial.They mentioned like below. (?:...) A non-capturing version of regular parentheses. Matches whatever regular expression is inside the parentheses, but the substring matched by the group cannot be retrieved after performing a match or referenced later in the pattern. But i don't know how to use this in regex. Pls explain me with example in java.

29th Dec 2021, 4:39 PM
Jawahirullah
Jawahirullah - avatar
2 Answers
29th Dec 2021, 4:51 PM
NEZ
NEZ - avatar
29th Dec 2021, 4:48 PM
SoloProg
SoloProg - avatar