I meant that call
```
if( regexp() )
{
    IP::Check*
}
```
pattern can be replaced by
```
IP::Check*
```
bcs especially in case of IPv6 is your pattern wrong. See IP::Check6 and related testsuite for valid input formats for IPv6.