Remove all characters except letters, digits and !#$%&'*+-/=?^_`{|}~@.[].

@param string $name
@param string $verb
425187
public function email($data, $default = 'missing@example.com', $options = [])
    {
        //FILTER_SANITIZE_EMAIL

        //check custom filters and flags in options array;
        list($filter, $flags, $parameters) = $this->readFiltersAndFlags(
            $options,
            static::FILTER_EMAIL
        );
        //push custom filters and flags from options to their respective array;

        $email = $this->scrub($data, $filter, $parameters);

        //@TODO valid is email with $this->validate before return;
        return (string)(empty($email) ? $default : $email);
    }
662392
public function getArray($name, $default = [], $verb = 'get', $options = array())
    {

        if (strtolower($verb) == 'request') {
            $verb = $this->getVerb();
        }

        //just form casting
        $verb = strtolower($verb);

        if (!($input = $this->data($verb))) {
            return $default;
        }

        //Undefined
        if (empty($name) || !isset($input) || !isset($input[$name])) {
            if (isset($default) && !empty($default)) {
                return $default;
            } else {
                return null; //nothing for that name;
            }
        }

        //FILTER_SANITIZE_STRING
        //FILTER_SANITIZE_STRIPPED
        //\IS\HTML;
        $filter = \IS\CUSTOM;  //FILTER_CALLBACK;
        $options = array(
            "flags" => FILTER_REQUIRE_ARRAY,
        );

        //uhhhnrrr...
        $array = $input[$name];

        //Use the call back filter to clean this array
        //Sub processing for HTML and all that?
        return (array)$array;
    }
1251568
public static String stripGetterPrefix(String name) {
        if (StringUtils.isBlank(name)) {
            return name; // This should never happen.
        }
        String[] mName = StringUtils.splitByCharacterTypeCamelCase(name);
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i < mName.length; i++) {
            sb.append(mName[i]);
        }
        return StringUtils.uncapitalize(sb.toString());
    }
1312045
function removeCommand($name)
    {
        unset($this->commands[$name]);
        foreach ($this->groups as $key => $commands){
            foreach ($commands as $i => $c){
                if ($c[0] == $name){
                    unset($this->groups[$key][$i]);
                }
            }
        }
    }
629390
private static function clearName($string, $removeWords) {
		$string = str_replace ( ' ', '-', $string );
		$string = preg_replace ( '/[^A-Za-z0-9\-]/', '', $string );
		foreach ( $removeWords as $word ) {
			$string = str_replace ( $word, '', $string );
		}
		$string = substr ( $string, 0, 29 );
		return $string;
	}
1239202
protected function _translateCommandMethod($verb) {
        $command = str_replace('_', '.', $verb);
        switch ($this->getVersion()) {
            case '2.1':
                $command = str_replace('ban', 'purge', $command);
                break;
            case '4.1':
            case '4.0':
            case '3.0':
                $command = str_replace('purge', 'ban', $command);
                break;
            default:
                Mage::throwException('Unrecognized Varnish version: '.
                    $this->_version);
        }
        return $command;
    }
238514
public function getEmail($name, $default = '', $verb = 'get', $options = array())
    {
        //FILTER_SANITIZE_EMAIL

        $filter = \IS\EMAIL;
        $options = array(
            "options" => $options
        );
        $email = $this->getVar($name, $filter, $default, $verb, $options);

        //@TODO valid is email with $this->validate before return;
        return (string)$email;
    }
876701
public static String stripAndTrim(String str, String replaceWith, boolean asciiOnly) {
		if (StringUtils.isBlank(str)) {
			return "";
		}
		String s = str;
		if (asciiOnly) {
			s = str.replaceAll("[^\\p{ASCII}]", "");
		}
		return s.replaceAll("[\\p{S}\\p{P}\\p{C}]", replaceWith).replaceAll("\\p{Z}+", " ").trim();
	}
1133599
public function removeParam($name) {
        $parts = explode('.', $name);
        $currentObject = $this->getParams();
        foreach($parts as $key=>$part) {
            if (!property_exists($currentObject, $part)) {
                return; //Property already does not exist
            }
            if($key+1==count($parts)) {
                unset($currentObject->$part);
            } else {
                $currentObject = $currentObject->$part;
            }
        }
    }
242910
private function filterConstant($name) {
        $name = str_replace(' ', '_', $name);
        $name = preg_replace_callback(
            '@[A-Z][a-z]@',
            function ($matches) {
                return '_' . $matches[0];
            },
            $name
        );


        $name = str_replace(
            array(
                '/',
                '-',
                ',',
                '|',
                "\t"
            ),
            array(
                '_SLASH_',
                '_DASH_',
                '_COMMA_',
                '_PIPE_',
                '_TAB_'
            ),
            $name
        );
        $name = trim($name, '_');
        $name = preg_replace('@_+@', '_', $name);
        $name = preg_replace('@[^a-zA-Z0-9_]@', '', $name); //Strip out bad characters
        $name = strtoupper($name);
        if(is_numeric($name)) {
            $name = 'VALUE_'.$name;
        }
        return $name;
    }
402445
public static function RemovePostData ($name) {
		if (static::HasClassVar('data', $name)) {
			static::RemoveClassVar('data', $name);
		}
		if (Arrays::ExistsLowest($_POST, array_merge(['data'], (array) $name))) {
			$_POST = Arrays::RemoveLowest($_POST, array_merge(['data'], (array) $name));
		}
	}
1010695
public static function RemoveSuidSession ($name = null) {
		if (!static::SeesionOnSu()) {
			throw \ickx\fw2\core\exception\CoreException::RaiseSystemError('suidセッションが開始されていません。');
		}
		Session::Delete(static::_GetSeesionLayerPath($name));
	}
175011
public static String removeNumericSuffix(String name) {
    int i = name.length();
    while (--i >= 0) {
      char ch = name.charAt(i);
      if (ch < '0' || ch > '9') break;
    }
    return name.substring(0, i + 1);
  }
518573
public function remove($name)
    {
        $this->requireNames();
        
        $lower = strtolower($name);
        if(array_key_exists($lower, $this->names)) {
            $name = $this->names[$lower];
            unset($this->names[$lower]);
            unset($this->headers[$name]);
        }
    }
1058114
public function delete($name)
    {
        $this->stale = true;

        try {
            $this->model->where('name', '=', $name)->delete();
        } catch (Exception $e) {
            throw new WriteException($e);
        }
    }
1226280
private static function extractWords($name) {
        /** @noinspection ReturnFalseInspection */
        if (false === strpos($name, '_')) {
            $r = preg_replace('#[A-Z]#', ' $0', $name);
        } else {
            $r = strtr($name, array('_' => ' '));
        }
        $r = strtolower(ltrim($r));
        return $r;
    }
339988
public function remove($name): void
    {
        if ($this->contains($name) == false) {
            return;
        }

        unset($this->record[$name]);
    }