Skip to content

alaaels3id/Laravel-regexs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is some regex for PHP

Installation

You can install the package via Composer.

composer require alaaelsaid/laravel-regexs

Usage

use Alaaelsaid\LaravelRegexs\Facade\Regex;

$is_valid_email = Regex::email('example@email.com'); // return TRUE;

$is_valid_youtube_url = Regex::youtube('example@email.com'); // return FALSE

$is_valid_english_sentence = Regex::english('مرحبا'); // return FALSE

$is_valid_arabic_sentence = Regex::arabic('Hello'); // return FALSE

$is_valid_country_code = Regex::countryCode('966'); // return TRUE

$is_valid_url = Regex::url('link.here-com'); // return FALSE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages