I think you should remove `b`, since it's a valid hex digit. Actually, my point is we should not support something that's not supported by php (see my comment in outdated diff), so I suggest something like to replicate php's behavior:

    if (preg_match('#^\+?(0x?)?(.*)([KMG])?$#', $iniMax, $match)) {
        // ...

        return $iniMax;
    }

    return 0;