Displaying page
of
pages;
Items to
Title |
Test
Details
URI Validation & Extraction
|
Expression |
^((http|https|ftp):\/\/)?((.*?):(.*?)@)?([a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])((\.[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])*)(:([0-9]{1,5}))?((\/.*?)(\?(.*?))?(\#(.*))?)?$
|
Description |
Validates and extracts URI components.
Protocol is optional.
Username & Password is optional.
Host regex was taken from Remi Sabourin and follows RFC1035 except that it allows hostnames greater than 253 chars.
Also TLD length is not restriced.
Port number is optional.
Absolute Path is optional, and also extracts the optional querystring and optional anchor reference.
|
Matches |
http://john:@www.domain.com:8080/index.html?param=value#Page1
|
Non-Matches |
http://www.domain.com:/ | www-.domain.com
|
Author |
Rating:
Not yet rated.
John Bayly
|
Title |
Test
Details
UK Vehicle Registration Numbers (VRM)
|
Expression |
Pattern that matches all DVLA Vehicle Registration Marks (VRM). Allows for an optional single space between segments.
Source:
http://www.carreg.co.uk/number_plates/registration_numbers
|
Description |
^(([A-Z]{1,2}[ ]?[0-9]{1,4})|([A-Z]{3}[ ]?[0-9]{1,3})|([0-9]{1,3}[ ]?[A-Z]{3})|([0-9]{1,4}[ ]?[A-Z]{1,2})|([A-Z]{3}[ ]?[0-9]{1,3}[ ]?[A-Z])|([A-Z][ ]?[0-9]{1,3}[ ]?[A-Z]{3})|([A-Z]{2}[ ]?[0-9]{2}[ ]?[A-Z]{3})|([A-Z]{3}[ ]?[0-9]{4}))$
|
Matches |
A1|R296ACR|JON 123|SU 51 ANE
|
Non-Matches |
BAZ
|
Author |
Rating:
Not yet rated.
John Bayly
|
Displaying page
of
pages;
Items to