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: 5293 regular expressions found.

Change page:   |    Displaying page 2 of 265 pages; Items 21 to 40
Title Test Details Password with n numbers of digits, upper case character and special character.
Expression
(?=^.{12,25}$)(?=(?:.*?\d){2})(?=.*[a-z])(?=(?:.*?[A-Z]){2})(?=(?:.*?[!@#$%*()_+^&}{:;?.]){2})(?!.*\s)[0-9a-zA-Z!@#$%*()_+^&]*$
Description
User can specify n numbers of digits, upper case character and special character. In this example, we will use two special characters, digits and upper case in the password. Explanation: (?=^.{12,25}$) -- password length range from 12 to 25 (?=(?:.*?[!@#$%*()_+^&}{:;?.]){2}) -- at least 2 special characters (!@#$%*()_+^&}{:;?.}) (?=(?:.*?\d){2}) -- at least 2 digits (?=.*[a-z]) -- characters a-z (?=.{2,}[A-Z]) -- at least 2 upper case characters
Matches
PassW0rd@1*3, pAsSword@#123
Non-Matches
PassW0rd@1*, PassW0rd@1*3', PassW0rd@1 3p
Author Rating: Not yet rated. Bryian Tan
Title Test Details RegularExpression which does not allow SPACE
Expression
(?=^.{1,}$)(?!.*\s)[0-9a-zA-Z!@#$%*()_+^&\[\]]*$
Description
Regular Expression which does not allow SPACE but allows every possible alpha-numeric and special characters.
Matches
abc*()A123 | 12xyz[_]
Non-Matches
no space | abc *0123[]
Author Rating: Not yet rated. Bryian Tan
Title Test Details Regular Expression to validate file path and extension
Expression
^(?:[\w]\:|\\)(\\[a-z_\-\s0-9\.]+)+\.(txt|gif|pdf|doc|docx|xls|xlsx)$
Description
Regular Expression to validate file path and extension.Compatible with JavaScript and ASP.NET
Matches
\\192.168.0.1\folder\file.pdf | \\192.168.0.1\my folder\folder.2\file.gif | c:\my folder\abc abc.docx | c:\my-folder\another_folder\abc.v2.docx
Non-Matches
\\192.168.0.1\folder\fi/le.pdf | \\192.168.0.1\folder\\file.pdf | \\192.168.0.1\my folder\folder.2\.gif | c:\my folder\another_folder\.docx | c:\my folder\\another_folder\abc.docx | c:\my folder\another_folder\ab*c.v2.docx | c:\my?folder\another_folder\abc.v2.docx | file.xls
Author Rating: The rating for this expression. Bryian Tan
Title Test Details Pattern Title
Expression
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
Description
Password must contain at least one letter, at least one number, and be longer than six charaters.
Matches
a1b2c3 | abcdefg123 | 12345a
Non-Matches
abcdefghij | 1234567890
Author Rating: The rating for this expression. Eric Miller
Title Test Details Saudi Mobile
Expression
05\d{8}
Description
Saudi mobile numbers must start with 05 and just accepts 10 digits
Matches
059ddddddd , 053dddddddd , 054dddddddd , 056dddddddd,053dddddd
Non-Matches
01dddddddd
Author Rating: Not yet rated. Shoodatubcuth
Title Test Details Pattern Title
Expression
^((?-i:0x)?[A-Fa-f0-9]{32}| [A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}| \{[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}\})$
Description
Validates a GUID/UUID, without capture, to the following patterns: [{hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh}], [hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh],[hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh],[0xhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh], where 'h' is a valid hex character. This last pattern is a binary format commonly used with SQL Server 2000. It allows you to use binary(n) and varbinary(n) parameters that convert well to unique identifier. Please note that this is not case sensitive EXCEPT the 'x' in the binary pattern. It must be lower case.
Matches
6F9619FF-8B86-D011-B42D-00C04FC964FF | 0x6F9619FF8B86D011B42D00C04FC964FF | {6F9619FF-8B86-D011-B42D
Non-Matches
{6F9619FF8B86D011B42D00C04FC964FF} | 0X6F9619FF8B86D011B42D00C04FC964FF
Author Rating: The rating for this expression. Patrick Fogarty
Title Test Details Pattern Title
Expression
^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$
Description
Much simpler email expression. This one forces a length of 2 or 3, which fits current specs, but you may need to alter the end as this one allows all numerals on the .COM section.
Matches
a@a.com | a@a.com.au | a@a.au
Non-Matches
word | word@ | @word
Author Rating: Not yet rated. Gregory Beamer
Title Test Details Head Parser
Expression
(<meta [.\w\W]*?\>)|(<style [.\w\W]*?</style>)|(<link [.\w\W]*?\>)|(<script [.\w\W]*?</script>)
Description
Parses the objects out from an html header. These objects are: meta, style, link, and script. Use with the multiline option to pull from multine scripts and styles.
Matches
<head runat="server"> <title></title> <script type="text/javascript"> // // function foo() { } // </script> <style type="text/css"> /* ** ** */ .foo { font-size : large;} </style> <script src="includes/JScript1.js" type="text/javascript"></script> <link href="includes/Stylesheet1.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> // // function foo2() { } // </script> <style type="text/css"> /* **
Non-Matches
Um....
Author Rating: Not yet rated. Tim Cartwright
Title Test Details Social Security Number - All Rules Enforced
Expression
^((?!000)(?!666)(?:[0-6]\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-2]))-((?!00)\d{2})-((?!0000)\d{4})$
Description
Could not find a regex that truly matched the rules here http://en.wikipedia.org/wiki/Social_Security_number#Valid_SSNs So I modified an existing one to match the valid SSN rules. The first digit set will not match: 000, 666, 734 to 749, and greater than 772. * Numbers with all zeros in any digit group (000-xx-####, ###-00-####, ###-xx-0000)
Matches
455-55-4444|333-22-1111|733-11-1111
Non-Matches
734-11-1111|749-11-1111|772-11-1111
Author Rating: The rating for this expression. Tim Cartwright
Title Test Details Querystring Parse
Expression
(?<=[\?|\&])(?<key>[^\?=\&\#]+)=?(?<value>[^\?=\&\#]*)
Description
I wrote this to parse the querystring into its key value parts. It will also match querystring keys without an associated value. For a nice url parser, look at this one http://regexlib.com/REDetails.aspx?regexp_id=628
Matches
http://www.foo.com/page.aspx?qs1=true&test=foo&bar=true&test#blah
Non-Matches
http://www.foo.com/page.aspx
Author Rating: The rating for this expression. Tim Cartwright
Title Test Details https://testosteronesboosterweb.com/proshred-testo/
Expression
gtgtrh
Description
Proshred Testo It will lessen the time needed for the muscle to completely recover. To illustrate this, DHT is like fertilizer for body hair, but poison to the hair on your head. GABA stimulates secretion of human progress hormone (hGH). https://testosteronesboosterweb.com/proshred-testo/
Matches
hytnjh
Non-Matches
yujuyj
Author Rating: Not yet rated. Michelle cope
Title Test Details Pattern Title
Expression
/[^/]+$
Description
Very easy expression to get the file name from a path. I couldn't find it so I wrote it and now I post it here! Hope it could help.
Matches
/home/pietro/myfile.txt | /home/pietro/myfile
Non-Matches
/home/pietro/mydir/
Author Rating: Not yet rated. Pietro Bonfa
Title Test Details Script Block Parser
Expression
<script(?:(?:.*(?<src>(?<=src=")[^"]*(?="))[^>]*)|[^>]*)>(?<content>(?:(?:\n|.)(?!(?:\n|.)<script))*)</script>
Description
This one enables you to parse well-formed script tags to get both the src value and the block content, if specified. I'm using this one in some AJAX where I get script blocks back in a text reponse and need to parse them and add them to the DOM so they get processed.
Matches
<script type="text/javascript" src="Test.js"></script>
Non-Matches
<script src=Test.js></script>
Author Rating: Not yet rated. Ambrose
Title Test Details Phone Number
Expression
([+]?\d[ ]?[(]?\d{3}[)]?[ ]?\d{2,3}[- ]?\d{2}[- ]?\d{2})
Description
Validate Russian phone number (mobile, landline) that accept a space, a dash between the numbers.
Matches
88002345675 | +7 (960) 000 00 00 | +7(4855)23-34-56
Non-Matches
+7(4855)23.34.56 | 7 4855 aaa 234 526 | 8(232)_232_23_12
Author Rating: The rating for this expression. Sergei Lewandowski
Title Test Details Swedish personnummer with accepted foreigners
Expression
^[0-9]{6}-[0-9pPtTfF][0-9]{3}$
Description
Other Swedish personnummer regexps do not take into account that at Swedish universities, foreigners might get special temporary personnummers with a "P", "T", or "F" instead of the first of the four last numbers. This code fixes the problem, but does not check the validity of the date, or the last number.
Matches
123456-1234 | 123456-P234 | 123456-f234
Non-Matches
123456-12 | 1234561234 | 123456
Author Rating: Not yet rated. Petter Terenius
Title Test Details Date Validation Expression
Expression
^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/(19|20)\d{2}|(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/\d{2}|(0[1-9]|1[0-2])\-(0[1-9]|1\d|2\d|3[01])\-(19|20)\d{2}|(0[1-9]|1[0-2])\-(0[1-9]|1\d|2\d|3[01])\-\d{2}|([1-9]|1[0-2])\/([1-9]|1\d|2\d|3[01])\/(19|20)\d{2}|([1-9]|1[0-2])\/([1-9]|1\d|2\d|3[01])\/\d{2}|([1-9]|1[0-2])\-([1-9]|1\d|2\d|3[01])\-(19|20)\d{2}|([1-9]|1[0-2])\-([1-9]|1\d|2\d|3[01])\-\d{2}|(([0-9])|([0-2][0-9])|([3][0-1]))\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\-\d{4}|(([0-9])|([0-2][0-9])|([3][0-1]))\-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\-\d{2}$
Description
Date Validation Expression
Matches
m-d-yy m-d-yyyy mm-dd-yy mm-dd-yyyy m/d/yy m/d/yyyy mm/dd/yy mm/dd/yyyy dd-MMM-yyyy dd-MMM-yy
Non-Matches
d-m-yy d-m-yyyy dd-mm-yy dd-mm-yyyy d/m/yy d/m/yyyy dd/mm/yy dd/mm/yyyy MMM-dd-yyyy MMM-dd-yy
Author Rating: Not yet rated. Hari Balaram R J
Title Test Details Pattern Title
Expression
^[A-Za-z]{1,2}[\d]{1,2}([A-Za-z])?\s?[\d][A-Za-z]{2}$
Description
UK Postal Codes - The code is normally written in capital letters with a space between the outer and inner parts; it is understandable if the space is omitted. This regular expression validates upper or lower case with or without the space:
Matches
CF1 2AA | cf564fg
Non-Matches
a1234d | A12 77Y
Author Rating: Not yet rated. Scott Pite
Title Test Details Linux Uptime Command
Expression
/^([0-2][0-9]\:[0-5][0-9]\:[0-5][0-9])\s+up\s+([0-9\:]{1,5})\s*(days|day|min|mins)?(?:\,\s+([0-9\:]{1,5})\s*(days|day|min|mins)?)?\,\s+([0-9]{1,4})\susers?\,\s+load\s+average\:\s+([0-9\.]{1,6})\,\s+([0-9\.]{1,6})\,\s+([0-9\.]{1,6})$/
Description
Take the output of the uptime command and split it into a useful array. Use array combine with the below keys array for usefull output. array('raw','time','up1','unit1','up2','unit2','users','1min','5min','15min')
Matches
13:21:33 up 219 days, 1:11, 1 user, load average: 0.00, 0.00, 0.00 | 21:17:21 up 19 days, 9:34, 1 user, load average: 0.00, 0.00, 0.00 | 21:17:21 up 19 days, 9:34, 1 user, load average: 12.30, 5.02, 1.20
Non-Matches
none
Author Rating: Not yet rated. Sam Crookes
Title Test Details Pattern Title
Expression
^(?=[^&])(?:(?<scheme>[^:/?#]+):)?(?://(?<authority>[^/?#]*))?(?<path>[^?#]*)(?:\?(?<query>[^#]*))?(?:#(?<fragment>.*))?
Description
Use it for breaking-down a URI (URL, URN) reference into its main components: Scheme, Authority, Path, Query and Fragment. This is not a simple match regular expression. so it not works to verify a URI. It returns 1 matching group for each URI component. For example, for the following URI: http://regexlib.com/REDetails.aspx?regexp_id=x#Details returns: scheme=&quot;http&quot;, authority=&quot;regexlib.com&quot;, path=&quot;/REDetails.aspx&quot;, query=&quot;regexp_id=x&quot; and fragment=&quot;Details&quot;. This is a W3C raccomandation (RFC 2396).
Matches
http://regexlib.com/REDetails.aspx?regexp_id=x#Details
Non-Matches
&
Author Rating: Not yet rated. Frederico Knabben
Title Test Details monclershops
Expression
monclershops
Description
Hiver 2011 que nous portons http://www.doudounemonclershop.net Moncler
Matches
monclershops
Non-Matches
monclershops
Author Rating: The rating for this expression. xiao
Change page:   |    Displaying page 2 of 265 pages; Items 21 to 40

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