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

Change page:   |    Displaying page 213 of 234 pages; Items 4241 to 4260
Title Test Details Pattern Title
Expression
(?<HTML><a[^>]*href\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>(?<Title>[^<]+|.*?)?</a\s*>)
Description
Powerful href extractor for HTML Element A. Groups extracted result separately that you can easily use HTML Element, URI or its title. These may be useful to: (?<HTML><area[^>]*href\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>) (?<HTML><form[^>]*action\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>) (?<HTML><frame[^>]*scr\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>) (?<HTML><iframe[^>]*scr\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>) (?<HTML><link[^>]*href\s*=\s*[\"\']?(?<HRef>[^"'>\s]*)[\"\']?[^>]*>)
Matches
<a href='http://www.regexlib.com'>Text</a> | <a href="...'>Text</a> | &
Non-Matches
all other html tags
Author Rating: Not yet rated. Aivar Holyfield
Title Test Details Detect Javascript
Expression
<script.*/*>|</script>|<[a-zA-Z][^>]*=['"]+javascript:\w+.*['"]+>|<\w+[^>]*\son\w+=.*[ /]*>
Description
Matches any opening or closing script tags, inline javascript: tags, inline on<function> (ex: onClick) tags. MATCHES: <a href="javascript:alert('test0');"> <a href='javascript:alert("test1");'> <a href="#" onClick="alert('test2');" /> <script language="javascript" src="somewhere.js"> <script language="javascript" src="somewhere.js" /> <script> </script>
Matches
<a href="javascript:alert('test0');"> or <a href="#" onClick="alert('test');" /> etc...
Non-Matches
This should not appear because in javascript: you can use the < operator or the > operator.
Author Rating: Not yet rated. Denny Love
Title Test Details Get XML tag from string
Expression
<\?xml.*</note>
Description
This will find any XML within a string starting with the <?xml header and ending with the closing root tag. Replace </note> with your closing root tag. (use singleline and case insensitive) - I use this to pull xml written in a web document.
Matches
<?xml version="1.0" encoding="ISO-8859-1"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
Non-Matches
<?xml version="1.0" encoding="ISO-8859-1"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></BADnote>
Author Rating: The rating for this expression. Denny Love
Title Test Details BFPO - British Forces Post Office
Expression
^(b|B)(f|F)(p|P)(o|O)(\s*||\s*C(/|)O\s*)[0-9]{1,4}
Description
Matches BFPO Allows for BFPO with no spacing
Matches
BFPO 2, BFPO 2222, BFPO C/O 121, BFPO2222
Non-Matches
bf po 1212, BFPO 22222
Author Rating: Not yet rated. Dean Simpson
Title Test Details BFPO - British Forces Post Office - STRICT
Expression
^(b|B)(f|F)(p|P)(o|O)(\s|\sC/O\s)[0-9]{1,4}
Description
Matches all coorrectly spaced BFPO's
Matches
BFPO 2222, BFPO C/O 121
Non-Matches
BFPO 22222 ,bf po 1212,bfpo co 121,BFPO222
Author Rating: Not yet rated. Dean Simpson
Title Test Details Validate Semicolon Delimited Email Addresses
Expression
^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+(\s*[;.]\s*(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$
Description
This is a minor change to the Regex found at http://regexlib.com/RETester.aspx?regexp_id=1007 to allow for spaces around the delimiters.
Matches
info@domain.com; contact@domain.com
Non-Matches
info@domain.com, contact@domain.com
Author Rating: Not yet rated. Tim Schreiber
Title Test Details Latitude & Longitude (DMS)
Expression
([0-8]?\d(°|\s)[0-5]?\d('|\s)[0-5]?\d(\.\d{1,6})?"?|90(°|\s)0?0('|\s)0?0"?)\s{0,}[NnSs]\s{1,}([0-1]?[0-7]?\d(°|\s)[0-5]?\d('|\s)[0-5]?\d(\.\d{1,6})?"?|180(°|\s)0?0('|\s)0?0"?)\s{0,}[EeOoWw]
Description
Validate lat/lon coordinates
Matches
45°23'36.0" N 10°33'48.0" E or 45°23'36.123456"N 010°33'48"E
Non-Matches
45°23'36." N 10°33'48.0" E or 45°23'36.1234567"N 010°33'48"E
Author Rating: Not yet rated. GiuCapIT
Title Test Details Pattern Title
Expression
^[A-Za-z]{1,2}[0-9A-Za-z]{1,2}[ ]?[0-9]{0,1}[A-Za-z]{2}$
Description
This regular expression can be used to validate UK postcodes. Especially useful if want to provide a client side validation on a web site.
Matches
SW112LE | SW11 2LE | CR05LE
Non-Matches
12CR0LE | 12CR 0LE | SWLE05
Author Rating: Not yet rated. Santosh Potadar
Title Test Details Pattern Title
Expression
^[A-Za-z]{2}[0-9]{6}[A-Za-z]{1}$
Description
UK National Insurance Number validation. Especially useful to validate through clientside/server side script on a website.
Matches
SP939393H | PX123456D | SW355667G
Non-Matches
12SP9393H | S3P93930D | 11223344SP00ddSS
Author Rating: The rating for this expression. Santosh Potadar
Title Test Details List of digits, CSV
Expression
^(\d{4},?)+$
Description
Accepts a list of 4 digits separated by commas. Used to validate a list of years. Can be easily customized to change the number of digits.
Matches
2001,2002,2003 | 1999 | 1999,2000,
Non-Matches
123 | 1234,e,1234 | 1234, 1234,1234
Author Rating: Not yet rated. Luc Boudreau
Title Test Details Decimal number
Expression
^[\+\-]?[0-9]+([\,\.][0-9]+)?$
Description
Accepts integer and decimal numbers, the decimal delimiter beeing either a point or a comma, prefixed or not by a plus or minus sign.
Matches
«1» «-1» «+1» «1.0» «-1.0» «+1.0» «1,0» «-1,0» «+1,0»
Non-Matches
«abc» «1e2»
Author Rating: Not yet rated. Luc Boudreau
Title Test Details Pattern Title
Expression
[0-9]{4}\s*[a-zA-Z]{2}
Description
Dutch zip code expression 4 numbers - space yes/no - 2 letters
Matches
1054 WD | 1054WD | 1054 wd
Non-Matches
10543
Author Rating: Not yet rated. Roland Mensenkamp
Title Test Details Pascal case
Expression
^([A-Z]{1,}[a-z]{1,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,}[A-Z]{0,}[a-z]{0,})$
Description
Matches words in PascalCase. Only alphas, no spaces or other special characters, the first character must be upper case. Matches up to 12 PascalCase words.
Matches
MyLongClassName,ABClassName
Non-Matches
my1stLong ClassName
Author Rating: Not yet rated. Rob
Title Test Details Pattern Title
Expression
^[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?$
Description
A regular expression that matches numbers. Integers or decimal numbers with or without the exponential form.
Matches
23 | -17.e23 | +.23e+2
Non-Matches
+.e2 | 23.17.5 | 10e2.0
Author Rating: The rating for this expression. Erik Pettersson
Title Test Details username regex
Expression
^[^\~\`\!\@\#\$\%\^\&\*\(\)\-\_\=\+\\\|\[\]\{\}\;\:\"\'\,\<\./\>\?\s](([a-zA-Z0-9]*[-_\./]?[a-zA-Z0-9]{1,})*)$
Description
allows a username of any length a-z 0-9 including one of ._- between each letter or number but not at the start or end of the name
Matches
a.b-c_d a1-b2.c3_d4 0a-b_c2.d.3
Non-Matches
-a1b2c3d_ _a1b2c3d- .abcd- -abcd. _abcd. .abcd_
Author Rating: Not yet rated. Adrian Bursill
Title Test Details Single quoted string
Expression
('(?:(?:\\'|[^'])*)'|NULL)
Description
This is useful to find single quoted strings in mysql dumps. It accepts \' inside the strings.
Matches
'A car'|'Mary\'s car'|NULL
Non-Matches
'asdasdasd|adsfadsf|23123
Author Rating: Not yet rated. graffic
Title Test Details South African Phone Number (incl. Mobile and Landline) Format
Expression
(\(0\d\d\)\s\d{3}[\s-]+\d{4})|(0\d\d[\s-]+\d{3}[\s-]+\d{4})|(0\d{9})|(\+\d\d\s?[\(\s]\d\d[\)\s]\s?\d{3}[\s-]?\d{4})
Description
Tries to match the format of phone numbers within South Africa. Does not try to validate phone numbers based on actual numbers (e.g. cell networks or other landline prefixes)
Matches
(011) 123 4543,(011) 123-4543,(011) 212 8765,011 876 8789,0118768789,011-876-8789,082 821 9090,+27 11 123 1231,+27 (11) 123-1231,+27 (11) 123 1231,+27(11)123-1231,+27 11 1238765
Non-Matches
011 1234 242
Author Rating: Not yet rated. Martin
Title Test Details Strip HTML tags
Expression
<(\s*/?\s*)\w+?(\s*(([\w-]+="[^"]*?")|([\w-]+='[^']*?')|([\w-]+=[^'"<>\s]+)))*(\s*/?\s*)>
Description
This RE strips HTML open and close tags from text with any attributes provided, including not properly formatted tags.
Matches
<html>, <meta http-equiv=Content-Type content="text/html; charset=windows-1250">, < / html body="<'something'>" body='"any thing"' b=jj123-qqj / >
Non-Matches
<html / d>, <html body='something">, <d /html>
Author Rating: Not yet rated. István Dani
Title Test Details https://alphajackedhelp.com/alpha-prime-xl/
Expression
dcesfsef
Description
Alpha Prime XL Since you know that muscle growth won't occur if there are no amino acids available, and that the only way to get amino acids is to eat protein, it only follows that having a nutritious, accessible source of protein is essential for you to reach your fitness goals. If you want this, you've got to be innovative and dedicated!)." You might look a little foolish, but at least within a few days you won't be fat. You should always try to eat small meals for boosting metabolism. Many people wonder what they are and how do I get them? https://alphajackedhelp.com/alpha-prime-xl/
Matches
gvdgt
Non-Matches
hrht
Author Rating: Not yet rated. Mildred lark
Title Test Details Hijri Date
Expression
((0[1-9])|(1[0-9])|(2[0-9])|(3[0]))/((0[1-9])|(1[0-2]))/14[3-9]{2}
Description
Matches DD/MM/YYYY for Arabic Hijri Dates. It starts range from 1434 ( current year ) to 1499
Matches
29/12/1434 | 01/02/1435 | 30/11/1434
Non-Matches
31/12/144 | 01/2/1435 | 5/5/1435
Author Rating: Not yet rated. Shah Malik M Quadri
Change page:   |    Displaying page 213 of 234 pages; Items 4241 to 4260

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