Regex Helpers for Laravel/PHP

// MatchRegex::isAlpha($subject, $allowWhitespace = false);Regex::isAlphanumeric($subject, $allowWhitespace = false);Regex::isAlphadash($subject, $allowWhitespace = false);Regex::isDigits($subject, $allowWhitespace = false);Regex::isNumeric($subject);// ReplaceRegex::alpha($subject, $replace = '');Regex::alphanumeric($subject, $replace = '');Regex::alphadash($subject, $replace = '');Regex::digits($subject, $replace = '');Regex::numeric($subject, $replace = '');
// Replace interfacepublic static function replace($subject, $pattern, $replacement = '');
// Match interfacepublic static function match($subject, $pattern, bool $allowWhitespace = false): bool;

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store