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

Please support RegExLib Sponsors

Hosting Spotlight

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 2693 regular expressions found.

Change page:   |    Displaying page 2 of 135 pages; Items 21 to 40
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: The rating for this expression. Ambrose
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: The rating for this expression. Petter Terenius
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: The rating for this expression. Scott Pite
Title Test Details Linux Uptime Command
Expression
/^([0-2][0-9]\:[0-5][0-9]\:[0-5][0-9])\s[u][p]\s([0-9]{1,4})\s[d][a][y][s]\,\s([0-9]{1,2}\:[0-5][0-9])\,\s\s([1-9]{1,4})\s[u][s][e][r]\,\s\s[l][o][a][d]\s[a][v][e][r][a][g][e]\:\s([0-9\.]{4,6})\,\s([0-9\.]{4,6})\,\s([0-9\.]{4,6})$/
Description
Take the output of the uptime command and split it into a useful array.
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
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
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: The rating for this expression. Frederico Knabben
Title Test Details A Liberal, Accurate Pattern for Matching URLs
Expression
\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
Description
Identifies the URLs in an arbitrary string of text, where by “arbitrary” let’s agree we mean something unstructured such as an email message or a tweet. Source: daringfireball.net
Matches
http://foo.com/blah_blah | http://foo.com/blah_blah/ | (Something like http://foo.com/blah_blah) | http://foo.com/blah_blah_(wikipedia) | (Something like http://foo.com/blah_blah_(wikipedia)) | http://foo.com/blah_blah. | http://foo.com/blah_blah/. | <http://foo.com/blah_blah> | <http://foo.com/blah_blah/> | http://foo.com/blah_blah, | http://www.example.com/wpstyle/?p=364. | http://✪df.ws/123 | rdar://1234 | rdar:/1234 | http://userid:password@example.com:8080 | http://userid@example.com | http://userid@example.com:8080 | http://userid:password@example.com
Non-Matches
no_ws.example.com | no_proto_or_ws.com | /relative_resource.php
Author Rating: Not yet rated. Scott C
Title Test Details For Accepting only Indian mobile numbers with exactly 10 Digits or blank
Expression
^[89][0-9]{9}
Description
This will accept all the Mobile nos starting with 8 or 9 and having exactly 10 digits (total) or it must be blank
Matches
9323444432,8022234456,8812345678
Non-Matches
72,54353454,01212,7644321108,79055,asdfg,12ase
Author Rating: The rating for this expression. Anand Khandelwal
Title Test Details Accepts everything except Zero and Double Zeros(0,00 are invalid Values)
Expression
[0][^0]|([^0]{1}(.){1})|[^0]*
Description
Accepts everything except Zero and Double Zeros(0,00 are invalid Values) for two Non Zero digits without using a RangeValidator
Matches
05,5,55,5A,50
Non-Matches
00,0
Author Rating: Not yet rated. Anand Khandelwal
Title Test Details Duration time
Expression
^[0-9]+\.?[0-9]?[0-9]?[0,5]?$
Description
The time should be fractional number and divisible by 0.005
Matches
1.005 | 60 | 0.08
Non-Matches
1.009 | -8 | .005
Author Rating: Not yet rated. Skoblin Ilya
Title Test Details Indian Mobile No
Expression
^((\+){0,1}91(\s){0,1}(\-){0,1}(\s){0,1}){0,1}9[0-9](\s){0,1}(\-){0,1}(\s){0,1}[1-9]{1}[0-9]{7}$
Description
This expression is to validate indian mobile nos
Matches
9836193498 +919836193498 9745622222
Non-Matches
+9197456222222 8745622222 9836193481
Author Rating: The rating for this expression. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: The rating for this expression. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: The rating for this expression. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: The rating for this expression. Nilarka Prasanna Das
Title Test Details Percentage
Expression
Percentage allowing upto 4 places of decimal
Description
(?!^0*$)(?!^0*\.0*$)^\d{1,2}(\.\d{1,4})?$
Matches
99 12.1 77.25 76.125
Non-Matches
101 100.1 101.25 106.125
Author Rating: The rating for this expression. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
^[1-9][0-9]{3}\s?[a-zA-Z]{2}$
Description
Validates Dutch Postal Codes (ZipCode). There was a previous one listed here, but it's not entirely correct. Namely that dutch postal codes can contain a zero but cannot start with one, so this one is the adjusted version.
Matches
1234AB | 1234 AB | 1001 AB
Non-Matches
0123AB | 1234A B | 0123 AB
Author Rating: The rating for this expression. Jos Krause
Title Test Details dds
Expression
sdsd
Description
sdsd
Matches
sdsd
Non-Matches
sdsd
Author Rating: The rating for this expression. alal
Title Test Details Pattern Title
Expression
^[\u0081-\uFFFF]{1,}$
Description
Double byte charactors validator. The rule applies to double byte charactor input validation.
Matches
??? | ????
Non-Matches
ABC | ;&amp;#F;
Author Rating: Not yet rated. Max Lu
Title Test Details Pattern Title
Expression
^([GB])*(([1-9]\d{8})|([1-9]\d{11}))$
Description
Simple check of valid UK VAT Registration numbers. The standard format for UK VAT number must be 9 characters long or 12 characters if a branch trader. The GB prefix has been included as optional, but technically you should include it. The UK VAT format also includes Government Departments and Health Authorities, but I have excluded them for the moment.
Matches
123456789 | GB123456789 | GB123456789123
Non-Matches
dfddf | 3443443 | 34 34 3344
Author Rating: Not yet rated. Ben Powell
Change page:   |    Displaying page 2 of 135 pages; Items 21 to 40

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