public static function stripPostNewlineTabs(string $str): string
    {
        $regex = "~".PHP_EOL."[\t]+~";
        return preg_replace($regex, PHP_EOL, $str);
    }
public static function stripPostNewlineTabs(string $str): string
    {
        $regex = "~".PHP_EOL."[\t]+~";
        return preg_replace($regex, PHP_EOL, $str);
    }
public static function stripPostNewlineTabs ( string $ str ) : string { $ regex = "~" . PHP_EOL . "[\t]+~" ; return preg_replace ( $ regex , PHP_EOL , $ str ) ; }
Remove all tabs that occur immediately after a newline

@param string $str
@return string
Remove all tabs that occur immediately after a newline