Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow null matcher group values in regex function #49
Imagine you have a regular expression that is matching an IP address and a port. UDP and TCP will always have the port but ICMP will be missing the port.
The way to solve this is to have an optional matcher group that might match nothing in case of ICMP and end up with a null value in the matcher group results.
The problem is that we are using a
This pull request avoids adding a
I found and (hopefully) fixed and actual issue in the year 2016. (7/19 may we never forget)