Get IP address - simple non capturing example
?: is used when you want to group an expression, but you do not want to save it as a matched/captured portion of the string.
An example would be something to match an IP address:
Note that I don't care about saving the first 3 octets, but the (?:...) grouping allows me to shorten the regex without incurring the overhead of capturing and storing a match.
, #ip address
, #non capturing
1347. stackoverflow, 7/12/2015
Link 1: http://www.systemtextregularexpressions.com/m10/get-ip-address-simple-non-capturing-exampleLink 2: http://www.systemtextregularexpressions.com/m10