Search
 
SCRIPT & CODE EXAMPLE
 

PHP

match uuid patter laravel regex

Validator::extend('uuid', function ($attribute, $value, $parameters, $validator) {
    return preg_match('/[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-(8|9|a|b)[a-f0-9]{3‌​}-[a-f0-9]{12}/', $value);
});
Comment

match uuid patter laravel regex

Validator::extend('location', function ($attribute, $value, $parameters, $validator) {
    return preg_match('/^-?d{1,2}.d{6,}s*,s*-?d{1,2}.d{6,}$/', $value);
});
Comment

PREVIOUS NEXT
Code Example
Php :: wp php footer date automatically 
Php :: Simple factory Design pattern in PHP 
Php :: laravel isset 
Php :: namespace in php 
Php :: cf7 remove p tags 
Php :: edd login page wordpress 
Php :: Show All Categories as Links 
Php :: append single quote around variable in php string 
Php :: php get json objects by key without indez 
Php :: php huruf besar di awal 
Php :: curl_setopt_array php 
Php :: php capture include 
Php :: truncate url rewrites magento 2 database 
Php :: extract in php 
Php :: conditional validation laravel based on role 
Php :: entrust laravel 
Php :: how to removde product into shop loop via product id 
Php :: php artisan preset bootstrap 
Php :: laravel @class 
Php :: wordpress change email new user template 
Php :: 1 to many relationship in laravel 
Php :: get time ISO 8601 wordpress 
Php :: php obfuscate email 
Php :: READIMAGE FUNCTION PHP 
Php :: php mail() 
Php :: hasmany relationship in laravel 
Php :: how to enable autoreload on save laravel 
Php :: laravel display category post by slug 
Php :: wpquery search taxonomy 
Php :: many to many relationship laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =