Displaying page
of
pages;
Items to
Title |
Test
Details
Amount or Price validator
|
Expression |
/^(?!0,?\d)(?:\d{1,3}(?:([, .])\d{2})?(?:\1\d{2})*|(?:\d+))((?!\1)[,.]\d{1,2})?$/u |
Description |
validate amount or price
check: Double value |
Matches |
10 | 10.00 | 0.50 | 0.01 |
Non-Matches |
01 | 10.0 | 0.5 | 10.500 |
Author |
Rating:
regex maker
|
Title |
Test
Details
Validate CURP regex
|
Expression |
^[A-Z]{1}[AEIOUX]{1}[A-Z]{2}((\d{2}((0[13578]|1[02])(0[1-9]|[12][0-9]|3[01])|(0[13-9]|1[0-2])(0[1-9]|[12][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8])))|([02468][048]|[13579][26])0229)[HM]{1}(AS|BC|BS|CC|CS|CH|CL|CM|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)[B-DF-HJ-NP-TV-Z]{3}[0-9A-Z]{1}[0-9]$ |
Description |
This regular expression is used to check the correct input of Mexican CURP, this regex has been modified over the years to correct some bugs.
Esta expresión regular la uso para checar la captura de curp en un sistema donde es utilizada como llave universal y se ha actualizado para arreglar pequeños errores como X en el segundo caracter y que la fecha de nacimiento sea valida. |
Matches |
CUJM540331MZSNRX09 | SASD760229HDFNRV04 | PXTA920430HSLNRN02 |
Non-Matches |
FRJU450324HBSKJD09 | POLO530229MJCJWSD04 | LOOR540932MOCKLD00 |
Author |
Rating:
Héctor Cunningham
|
Title |
Test
Details
Validate Egyptian Mobile Phone Numbers
|
Expression |
^01[0-2]\d{8}$ |
Description |
Validate Egyptian Mobile Phone Numbers
only Valid Format is
01######### |
Matches |
011######## | 012######## | 010######## |
Non-Matches |
013######## | 12######## | 0114## | 014######## |
Author |
Rating:
Not yet rated.
Ahmed Samy
|
Title |
Test
Details
useragents of bots
|
Expression |
/(bot|spider|crawler|google)/ |
Description |
run this against a useragent of your browser and you will get all bots |
Matches |
Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) |
Non-Matches |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 |
Author |
Rating:
Not yet rated.
A Bösefrau
|
Title |
Test
Details
find tablets by useragents
|
Expression |
$sPatternTablet = '/(Tablet|iPad|iPod)/'; |
Description |
run this against a useragent of your browser and you will get all tablets |
Matches |
Mozilla/5.0 (iPad; CPU OS 7_0_3 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B511 Safari/9537.53 |
Non-Matches |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 |
Author |
Rating:
Not yet rated.
A Bösefrau
|
Title |
Test
Details
mobile devices by useragent
|
Expression |
/(Windows Phone|iPhone|BlackBerry|Mobile|Android|Opera Mini|Opera Mobile|SymbianOS)/ |
Description |
find mobile devices by running this regex against the useragent of the browser |
Matches |
Mozilla/5.0 (Linux; U; Android 2.1-update1; ms-my; SonyEricssonE15i Build/2.1.1.A.0.6) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17 |
Non-Matches |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 |
Author |
Rating:
Not yet rated.
A Bösefrau
|
Title |
Test
Details
playstation and tv sets by useragent
|
Expression |
/(XBOX|Nintendo Wii|smarttv|playstation|hbbtv|philipstv|opera tv|inettv)/ |
Description |
run this against the browsers user agent and you get all playstations and tv sets |
Matches |
Opera/9.80 (Linux armv7l; InettvBrowser/2.2 (00014A;SonyDTV115;0002;0100) KDL42W674A; CC/THA) Presto/2.12.362 Version/12.11 |
Non-Matches |
Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8600/1.0; U; Bada/2.0; ms-my) AppleWebKit/534.20 (KHTML, like Gecko) Dolfin/3.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B |
Author |
Rating:
Not yet rated.
A Bösefrau
|
Title |
Test
Details
Medicare HICN
|
Expression |
((A|CA|H|JA|MA|MH|PA|PD|PH|WCA|WCD|WCH|WD|WH)[0-8][0-9]{2}(?!00)[0-9]{2}(?!0000)[0-9]{4})|([0-8][0-9]{2}(?!00)[0-9]{2}(?!0000)[0-9]{4}(A|B|Bl|B2|B3|B4|B5|B6|B7|B8|B9|BA|BD|BG|BH|BJ|BK|BL|BN|BP|BQ|BR|BT|BW|BY|Cl|C2|C3|C4|C5|C6|C7|C8|C9|CA|CB|CC|CD|CE|CF|CG|CH|CI|CJ|CK|CL|CM|CN|CO|CP|CQ|CR|CS|CT|CU|CV|CW|CX|CY|CZ|D|Dl|D2|D3|D4|D5|D6|D7|D8|D9|DA|DC|DD|DG|DH|DJ|DK|DL|DM|DN|DP|DQ|DR|DS|DT|DV|DW|DX|DY|DZ|E|El|E2|E3|E4|E5|E6|E7|E8|E9|EA|EB|EC|ED|EF|EG|EH|EJ|EK|EM|Fl|F2|F3|F4|F5|F6|F7|F8|Jl|J2|J3|J4|Kl|K2|K3|K4|K5|K6|K7|K8|K9|KA|KB|KC|KD|KE|KF|KG|KH|KJ|KL|KM|T|TA|TB|TC|TD|TE|TF|TG|TH|TJ|TK|TL|TM|TN|TP|TQ|TR|TS|TT|TU|TV|TW|TX|TY|TZ|T2|W|Wl|W2|W3|W4|W5|W6|W7|W8|W9|WB|WC|WF|WG|WJ|WR|WT)) |
Description |
The above regular expression is current as of 5/15/2014 as per any/all documentation easily found online. CMS guidlines provides the following guidance as of 9/11/2002: http://www.cms.gov/Regulations-and-Guidance/Guidance/Manuals/downloads/ge101c02.pdf
Since that date all rules have remained steadfast except the range of SSN has been expanded from a prefix of 772 to include all numbers through the prefix 899.
Note: This regex assumes any/all dashes have been removed. |
Matches |
H265897854 |
Non-Matches |
265897548KL |
Author |
Rating:
Not yet rated.
Gary Proctor
|
Title |
Test
Details
Kyrgyzstan Phone numbers | Кыргызские тел.номер
|
Expression |
^\(?\+([9]{2}?[6])\)?[-. ]?([0-9]{3})[-. ]?([0-9]{3})[-. ]?([0-9]{3})$ |
Description |
Kyrgyzstan Phone numbers: (+996)XXX-XXX-XXX. |
Matches |
+996702068026 | (+996)702068026 | +(996)702-068-026 |
Non-Matches |
+991702068026 | (996)702068026 | +(99)702-068-026 |
Author |
Rating:
Emir Mamashov
|
Title |
Test
Details
Date
|
Expression |
^((([1][1-2]|[0][1|3|5|7|8])[-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9]|[3][0-1])[-|\\|\/|\.]([1][9][0-9][2|4|8]|[2][0][0][2|4|8]|[2][0][1][2])|[0][2][-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9])[-|\\|\/|\.]([1][9][0-9][2|4|8]|[2][0][0][2|4|8]|[2][0][1][2])|([1][1]|[0][4|6|9])[-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9]|[3][0])[-|\\|\/|\.]([1][9][0-9][2|4|8]|[2][0][0][2|4|8]|[2][0][1][2]))|(([1][1-2]|[0][1|3|5|7|8])[-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9]|[3][0-1])[-|\\|\/|\.]([1][9][0-9][0|1|3|5|6|7|9]|[2][0][0][0|1|3|5|6|7|9]|[2][0][1][0|1|3])|[0][2][-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9])[-|\\|\/|\.]([1][9][0-9][0|1|3|5|6|7|9]|[2][0][0][0|1|3|5|6|7|9]|[2][0][1][0|1|3])|([1][1]|[0][4|6|9])[-|\\|\/|\.]([0][1-9]|[1][0-9]|[2][0-9]|[3][0])[-|\\|\/|\.]([1][9][0-9][0|1|3|5|6|7|9]|[2][0][0][0|1|3|5|6|7|9]|[2][0][1][0|1|3])))$ |
Description |
Perfect Date Regex. Contains all leap years. And Separators like "-","\","/" and ".". In the Format MM-DD-YYYY. Date Range from 01-01-1900 to 12-31-2013 |
Matches |
02-29-2012 | 02-28-2013 | 04-30-1994 |
Non-Matches |
00-00-0000 | 02-29-2013 | 04-31-1994 |
Author |
Rating:
Not yet rated.
Punit Pal
|
Title |
Test
Details
Specific formal parameter in method call
|
Expression |
myInstance\.myMethod(.*)\(.*myParam.*\) |
Description |
Searchs through code for the myParam value passed as parameter of the myMethod call of myInstance object |
Matches |
myInstance.myMethod( 1, myParam, 'test') |
Non-Matches |
myInstance2.myMethod( 1, myParam, 'test') |
Author |
Rating:
Not yet rated.
Yurdik Cervantes
|
Title |
Test
Details
CSS/HTML/JS Units of Measure Parsing
|
Expression |
/(\d*\.?\d+)\s?(px|em|ex|%|in|cn|mm|pt|pc+)/igm |
Description |
CSS/HTML/JS Units of Measure Parsing
Regular Expressions (RegEx / RegExp) Pattern
|
Matches |
12px -450px 11.11px 1.11px .0em .00000001em |
Non-Matches |
1.px 11.px |
Author |
Rating:
Not yet rated.
Yasin Kuyu
|
Title |
Test
Details
Validate Traditional Time Formats
|
Expression |
^(1[0-2]|0?[1-9]):([0-5]?[0-9])( AM| PM)$ |
Description |
You want to validate times in various traditional time formats, such as hh:mm tt 12-hour formats. |
Matches |
12:45 AM|2:30 PM |
Non-Matches |
12:45AM|2:30PM |
Author |
Rating:
Not yet rated.
Bheemsen Singh
|
Title |
Test
Details
Split URL authority
|
Expression |
^(?!.*\n.*)(?:([^:]*)(?::(.*?))?@)?([^:]*)(?::([^:]*?))?$ |
Description |
For the purposes of this regex, the authority/domain of a URL comes after the scheme + "//", and includes an optional username, password, and port.
This is a perl-compatible regex (PCRE) that captures the various parts of the a domain, including the (optional) username, (optional) password, host, and (optional) port. The capturing groups are as follows: 1 = username, 2 = password, 3 = host, 4 = post. See the source link for the logic behind parsing the domain. NOTE: This is NOT intended to parse entire URLs, you will need a separate regular expression to extract the domain. Technically, only strings with newline characters are non-matches. The rest yield empty capturing groups. ANOTHER NOTE: This does NOT verify that only ascii characters are used in domain names. It is intended to extract pieces from domains that should already be valid. |
Matches |
|
Non-Matches |
\n | : | @ |
Author |
Rating:
Not yet rated.
Tyler Durkota
|
Title |
Test
Details
Validation IP4
|
Expression |
^([01][0-9][0-9]|2[0-4][0-9]|25[0-5].[01][0-9][0-9]|2[0-4][0-9]|25[0-5].[01][0-9][0-9]|2[0-4][0-9]|25[0-5].[01][0-9][0-9]|2[0-4][0-9]|25[0-5])$ |
Description |
Validation IP Address Version 4 |
Matches |
127.0.0.1,255.255.0.0 |
Non-Matches |
.235.23,255.255.255.255.56. |
Author |
Rating:
Not yet rated.
Bheemsen Singh
|
Title |
Test
Details
valid file path pattern
|
Expression |
^(([a-zA-Z]:)|((\\|/){1,2}\w+)\$?)((\\|/)(\w[\w ]*.*))+\.([a-zA-Z0-9]+)$ |
Description |
Matches file paths to any valid format. Matches both "\" and "/" as valid separators in file path. Extension ("[a-zA-Z0-9]+") can be changed to any specific extension like (txt|jpg|png) and so on.Does NOT match relative file paths.
Feel free to write any comments about bugs or anything, since this is my first contribution to regexlib |
Matches |
/asdjd/jhsdh.ajsd | E:\drive.txt | \\usr\home\docs.jpg | \users\assassin\home/yp.r15 |
Non-Matches |
//home/boo/ | foo/bar.bmp |
Author |
Rating:
Abhishek Kale
|
Displaying page
of
pages;
Items to