RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 4672 regular expressions found.

Change page:   |    Displaying page 6 of 234 pages; Items 101 to 120
Title Test Details Pattern Title
Expression
^\$[+-]?([0-9]+|[0-9]{1,3}(,[0-9]{3})*)(\.[0-9]{1,2})?$
Description
This expression is little tricky since the $ sign is includeded in the expression itself. So whenever you want to make use of the expression be sure to prepend $ sign to the value if it's not present.
Matches
$-1 | $-1.0 | $1,234.42
Non-Matches
anything that doesn't start with $ | $.13 | $2.
Author Rating: Not yet rated. Chandrasing Patil
Title Test Details URl Domain names
Expression
^http[s]?://([a-zA-Z0-9\-]+\.)*([a-zA-Z]{3,61}|[a-zA-Z]{1,}\.[a-zA-Z]{2})/.*$
Description
Used for matching a URL and can be used for extracting the domain name from a given URL ending with '/'. Concat $2 and $3 to get the domain name.
Matches
http://www.google.com/;http://google.com/;http://code.google.com/;http://google.co.uk/;http://tx.us/
Non-Matches
http://www.google.com;
Author Rating: Not yet rated. buzzooka
Title Test Details PESEL
Expression
[0-9]{4}[0-3]{1}[0-9}{1}[0-9]{5}
Description
Polish national ID number PESEL (Powszechny Elektroniczny System Ewidencji Ludnosci).
Matches
44051401458 | 77020201233 | 88101006122
Non-Matches
44059901458 | 77028801233 | 88109006122
Author Rating: Not yet rated. Paweł Krawczyk
Title Test Details Web URL Validation RegEx
Expression
^(http(s?)\:\/\/)?(www.)?(([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_\-]+)?)(\.)(([a-zA-Z]{2,})([0-9a-zA-Z]+)?)(\:\d{0,5})?(\/|(\/[A-Za-z]+([a-zA-Z0-9]+)?)+)?(\?[a-zA-Z0-9\\\&\%\_\.\/\-\=\~\*]+)?$
Description
Web Url validation using regex. need mult-line option
Matches
https://www.test.com | https://www.test.com/ | https://test.com | https://test.com/ | http://test.com | www.test.com | www.test.com/ | test.com | test.com | test069.com | test.test.com | test01.test01.com | test.test.co | test.com:1 | test.cm:12345 | www.xa.com/abc/a | www.xa.com/abc | test.com/con1/method1 | w.google.com | google.com?te-st=xyz | oogle.com?test=xyz | google.com?test= | google.com?test | google.com?test=xyz&text | google.com?test=xyz&text=t&*5
Non-Matches
*.google.com | goole.com/* | .google.com | google.com? | google.com/? | google.co-m | @.google.com | ftp://test.com | test test.com | www.xa.com/ab c/a | test.com:123456 | //test.com | test.test.c | 01test.test.com | test.c | test.test. | http://www.test.c | 01test.com | test.01 |
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details USZ Zip Code Validation
Expression
^(\d{5})([\-\ ]\d{4})?$
Description
Support Zip+4 with dash "-" or space " " need multiline option
Matches
12345-4565 | 12345 | 12345 1234
Non-Matches
123456 | 1234 | 1234-1234 | 12345-12345 | 12345-123 | 12345 123 | 12345 12345 | 1234 1234 | 1234 12345
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details Phone Number Validation (USA Style)
Expression
^([+0]\d{1,3}[\ \-]?)?(\()?([0-9]{3})(?(2)\)|(\))?)([\-\.\ ])?([0-9]{3})(?(5)\5|\5?)([0-9]{4})$
Description
Validate Phone number like USA/North American Phone style country code allow max 3 digit (required 0 or + as prefix) suffix space or dash is optional
Matches
1234567890 | +11234567890 | +1 1234567890 | 123 456 7890 | 123-456-7890 | 123.456.7890 | (123)4567890 | (123) 456 7890 | (123)-456-7890 | (123).456.7890 | +1123 456 7890 | +1123-456-7890 | +1123.456.7890 | +1 123 456 7890 | +1 123-456-7890 | +1 123.456.7890 | +1(123)4567890 | +1(123) 456 7890 | +1(123)-456-7890 | +1(123).456.7890 | +1 (123)4567890 | +1 (123) 456 7890 | +1 (123)-456-7890 | +1 (123).456.7890 | 01123 456 7890 | 01123-456-7890 | 01123.456.7890 | 01 123 456 7890 | 01 123-456-7890 | 01 123.456.7890 | 01(123)4567890 | 01(123) 456 7890 | 01(123)-456-7890 | 01(123).456.7890 | 01 (123)4
Non-Matches
+ (123).456.7890 | +1234 123 456 7890 | 0 (123).456.7890 | 01234 123 456 7890 | 123 123 456 7890 | 123 4567890 | 123456 7890 | (123 4567890 | (1234567890 | 123-456 7890 | 123.456 7890 | 123 4567890 | +1 123 4567890 | +1 123456 7890 | +1 (123 4567890 | +1 (1234567890 | +1 123-456 7890 | +1 123.456 7890 | +1 123 4567890 | +1123 4567890 | +1123456 7890 | +1(123 4567890 | +1(1234567890 | +1123-456 7890 | +1123.456 7890 | +1123 4567890
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details Email Validateion RegEx
Expression
^([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_]+)?\@(([A-Za-z]+)([0-9]+)?([A-Za-z0-9\.\_]+)?)((\.)([a-zA-Z]+))$
Description
Need Multiline option to validate email string for better result
Matches
ankur.ranpariya@test.com | ankur.ran.pariya@test.com | ankur@test.com | ankur01@test.com | ankur.01abc@abc.com | ankur@abc01.com | ankur@ank01xt.com | ankur@gaming.indianic.com
Non-Matches
ankur ankur@test.com | ankur-ranpariya@test.com | ankur@@test.com | ankur@ankur@test.com | ankur@01ABC.com | 01ankur@test.com | ankur@ankur | @ankur.com | ankur.ra@123.com | ankur.ra@inda.123 | ankur.ra@test.a1 | 1@inidnia.com | ank%20@gmail.com
Author Rating: Not yet rated. Ankur Ranpariya
Title Test Details Leap Year
Expression
(15(8[48]|9[26]))|((1[6-9]|[2-9]\d)(0[48]|[13579][26]|[2468][048]))|(([2468][048]|16|3579[26])00)
Description
Validates four-digit leap years after 1582 (when Pope Gregory XIII switched to the Gregorian calendar). The last recognized leap year is 9996, so no worries with the y3k bug.
Matches
1584, 2000, 2048
Non-Matches
1200, 1580, 1941, 1800
Author Rating: The rating for this expression. Jon Gray
Title Test Details Email regexp for ereg()
Expression
^[a-z0-9_]{1}[a-z0-9\-_]*(\.[a-z0-9\-_]+)*@[a-z0-9]{1}[a-z0-9\-_]*(\.[a-z0-9\-_]+)*\.[a-z]{2,4}$
Description
Checks whether email in the string that must be an E-mail address
Matches
a-_tech.kr@mte.kab
Non-Matches
a-_tech.kr@_mte.kab
Author Rating: Not yet rated. Axel Foly
Title Test Details Full Name
Expression
[a-zA-Z]*( [a-zA-Z]*)?
Description
simple Name or Full Name pattern.
Matches
John, John Smith, Danilo Guedes
Non-Matches
Captain John Smith, John 12, 123
Author Rating: Not yet rated. Danilo Guedes Araujo
Title Test Details CNPJ / CPF do Brasil
Expression
(\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2})|(\d{3}\.\d{3}\.\d{3}\-\d{2})
Description
Valida e mascara CNPJ ou CPF dependendo do valor informado. Se informado dois digitos mais o ponto, será mascarado CNPJ se nao , CPF
Matches
12.123.123/1234-11 | 123.123.123-12
Non-Matches
qualquer letra
Author Rating: The rating for this expression. Ricardo Oliveira
Title Test Details Decimal with scale
Expression
^\d*[0-9](\.\d?[0-9])?$
Description
Allow Decimal values as [decimal](*, 2), scale length between 0 and 2
Matches
87645.09 | 87645.9 | 87645.10 | 87645
Non-Matches
87645.091 | 87645.
Author Rating: Not yet rated. Mohamed Ahmed
Title Test Details Percentage with scale
Expression
^((\d{0,1}[0-9](\.\d{0,1}[0-9])?)|(100))$
Description
Allow Percentage with optional scale (max length of 2) between (00.00 and 100)
Matches
00.00 | 00 | 99.99 | 99.5 | 100
Non-Matches
99. | 100.1
Author Rating: Not yet rated. Mohamed Ahmed
Title Test Details Test
Expression
+919433736446
Description
d
Matches
sdf
Non-Matches
sdf
Author Rating: Not yet rated. Amarjit Saha
Title Test Details Pattern Title
Expression
<[^>]*\n?.*=("|')?(.*\.jpg)("|')?.*\n?[^<]*>
Description
Match any image insert in a tag . simply replace the .jpg in the pattern whit a variable of content type ex:.swf,.js,.gif and loop the pattern to retrieve all tag whit the contenttype pass trought.... Very useful when you have people uploading html document in your site and you want to retrieve all dependecy.
Matches
<td background="../img/img.jpg" > | <img src=img.jpg > | <img src='img.jpg'
Non-Matches
= img.jpg | img.jpg
Author Rating: The rating for this expression. Marc-Antoine Latour
Title Test Details Valid directory only path
Expression
([A-Z]:\\[^/:\*;\/\:\?<>\|]+)|(\\{2}[^/:\*;\/\:\?<>\|]+)
Description
This regex will validate whether the value is a valid directory path.
Matches
C:\ValidFolder C:\ValidFolder\SubFolder \\ValidShare \\ValidShare\Subfolder
Non-Matches
C:\Inval:idPath InvalidFolder\Subfolder D:\Invalid*Folder
Author Rating: The rating for this expression. Craig Prescott
Title Test Details Serial from BIND zone file's SOA
Expression
(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}\.?\t*\s*){2}\(\r*\n*([0-9]{1,})
Description
Gets serial from BIND zone file
Matches
dns1.server.com. dnsmaster.server.com. ( 2007102310 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 900 ) ; Minimum
Non-Matches
ädns1.server.com. dnsmaster.server.com. ( 2007102310 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 900 ) ; Minimum
Author Rating: The rating for this expression. Jyri Turkia
Title Test Details test
Expression
1234
Description
test
Matches
1234
Non-Matches
test
Author Rating: Not yet rated. Alfredo Velicaria
Title Test Details Pattern Title
Expression
^([a-zA-Z.\s']{1,50})$
Description
This is just a regular special char expression used to get the hax0rs off your back (hopefully). You can use this for regular open name checking if you wanted. It only fails on the insert of anything other than a-z, A-Z, and ' or whitespace. I'm open to suggestions, but try to email them to me as well as posting them to help others. Thanks.
Matches
Jon M. Doe | Tim L. O'Doul | ...'''''
Non-Matches
Doe, Jon | &lt;&gt;,;:&quot;?/ | %\$#@!
Author Rating: Not yet rated. John Smart
Title Test Details Usercode
Expression
TIS-12-123
Description
User code expression
Matches
TIS-12-123
Non-Matches
TIS-12-dddd
Author Rating: Not yet rated. bala shiyamala
Change page:   |    Displaying page 6 of 234 pages; Items 101 to 120

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials