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 4 of 234 pages; Items 61 to 80
Title Test Details uploaded.to Downloadlink
Expression
http://(?:www\.|)uploaded\.to/\?id=[a-z0-9]{6}
Description
Downloadlinks of the 1-Click-Hoster uploaded.to
Matches
http://www.uploaded.to/?id=123456;http://uploaded.to/?id=abcdef
Non-Matches
http://www.uploaded.to/?id=12345678;uploaded.to/?id=123456
Author Rating: Not yet rated. dasnov
Title Test Details Match PCRE Modifiers (At Least in PHP)
Expression
/[^imsxeADSUXu]([imsxeADSUXu]*)$/
Description
This matches the modifiers section of a properly formed PCRE RegEx (at least in PHP). This of course assumes that the delimiters are not any of the modifiers letters, if that's even possible.
Matches
/asher/is | /(a|the)\spattern/imxe
Non-Matches
/pattern/mjhlk
Author Rating: The rating for this expression. Asher Holley
Title Test Details Curl apostrophes
Expression
'([dmstrl])([ .,?!\)\\/<])
Description
Find apostrophes in text. I use this to curl them, by replacing the above with this expression: ’$1$2
Matches
it's |they'll |we're,|I'd!
Non-Matches
its| were| He said 'Hello'.
Author Rating: Not yet rated. Nabha
Title Test Details Check filename extensions
Expression
^.*(([^\.][\.][wW][mM][aA])|([^\.][\.][mM][pP][3]))$
Description
Matches a file name to be either a .wma or .mp3 file. This can be used to check file uploads to make sure they are of a certain type. Substitute letters where appropriate for specific file types. This is a better solution (I think) than #343. Works in Javascript and C#.
Matches
thisfile.mp3 | tH@tfile.wma
Non-Matches
whatever.exe | somethingelse.mpa | thisagain.wm3 | filenamemp3 | filename..mp3 | filename.wmap3
Author Rating: Not yet rated. Dusan Hlavaty
Title Test Details CURP (Mexican Code)
Expression
^[a-zA-Z]{4}\d{6}[a-zA-Z]{6}\d{2}$
Description
Simple Expression to evaluate a Mexican CURP Code
Matches
LKHL675728KJDFFD99 | RESL720319HSRYNS00 | RESX720999HSRYNS00
Non-Matches
123LKHL675728KJDFFD99 | RESL720319HSRYANS00 | RESX720999HSRYNS000
Author Rating: Not yet rated. Jose Luis Reyes
Title Test Details RFC (Mexican Code)
Expression
^[A-Za-z]{3,4}[0-9]{6}$
Description
Mexican RFC code without Homonimia or separators
Matches
aBC999999 | RESL720319 | rerl000123
Non-Matches
abc-999999 | abc 999999 | ABCD 999999
Author Rating: Not yet rated. Jose Luis Reyes
Title Test Details RFC Homonimia (Mexican Code)
Expression
^[0-9a-zA-z]{3}$
Description
Mexican RFC Homonimia Code
Matches
999 | aaa | Z1D
Non-Matches
ABCD | AB | AB12
Author Rating: Not yet rated. Jose Luis Reyes
Title Test Details Pattern Title
Expression
(?=(?:[^\']*\'[^\']*\')*(?![^\']*\'))
Description
This exp will parse out space delimited strings with consideration to single quotes. I use it with SQL statements.
Matches
BETWEEN '11/1/2004' AND '12/1/2004 11:59:59 PM'
Non-Matches
flabberguasted
Author Rating: Not yet rated. Scott Richardson
Title Test Details Cleaning HTML
Expression
<\/{0,1}(?!\/|b>|i>|p>|a\s|a>|br|em>|ol|li|strong>)[^>]*>
Description
following a bit of work this morning trying to get something to strip out arbitrary html but leave 'known' tags in place, we have come up with the following which may be useful. This uses the 'negative lookahead' construct using '?!' It looks for an angle bracket and perhaps a backslash, as long as it is *not* followed by one of the terms in the ?! section. The brackets in this section do not return a value, they are part of the construct. This regexp can therefore be used to replace all unknown tags with blanks. Obviously you can add other 'good' html tags to the list.
Matches
<table>...</table>
Non-Matches
blah blah blah.
Author Rating: Not yet rated. Gordon Buxton
Title Test Details Cleaning HTML
Expression
<\/{0,1}(?!\/|b>|i>|p>|a\s|a>|br|em>|ol|li|strong>)[^>]*>
Description
following a bit of work this morning trying to get something to strip out arbitrary html but leave 'known' tags in place, we have come up with the following which may be useful. This uses the 'negative lookahead' construct using '?!' It looks for an angle bracket and perhaps a backslash, as long as it is *not* followed by one of the terms in the ?! section. The brackets in this section do not return a value, they are part of the construct. This regexp can therefore be used to replace all unknown tags with blanks. Obviously you can add other 'good' html tags to the list.
Matches
<table>...</table>
Non-Matches
blah blah blah.
Author Rating: Not yet rated. Gordon Buxton
Title Test Details Pattern Title
Expression
&lt;/?(\w+)(\s*\w*\s*=\s*(&quot;[^&quot;]*&quot;|'[^']'|[^&gt;]*))*|/?&gt;
Description
Matches HTML of XML tags, with or without attributes (single-, double-, or non-quoted), closing tags, or self-closing singleton tags.
Matches
&lt;font color=&quot;blue&quot;&gt; | &lt;/font&gt; | &lt;br /&gt;
Non-Matches
this is a test...
Author Rating: Not yet rated. Jean-Philip Losier
Title Test Details Hyperlink
Expression
<a\s{1}href="(?<url>.*?)"(\s?target="(?<target>_(blank|new|parent|self|top))")?(\s?class="(?<class>.*?)")?(\s?style="(?<style>.*?)")?>(?<title>.*?)</a>
Description
Get the URL, target, class, style and description from a hyperlink
Matches
<a href="www.test.com" target="_blank" class="testclass" style="padding:0;">This is a test link</a>
Non-Matches
www.test.com
Author Rating: Not yet rated. Matt Jones
Title Test Details Pattern Title
Expression
^(((ht|f)tp(s?))\://)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&amp;%\$#\=~_\-]+))*$
Description
Version 1.3.0: I needed a regexp to validate URL's without the ht(f)tp(s):// and include North American domains (like .us and .ca) and there didn't seem to be one available...so I created one. It will also work with ASP QueryStrings and anchor URL's. If you have a problem with the expression or have any suggestions to improve, please write me and let me know. Added .uk domain and expression now allows for URLs that contain JSP session IDs. 4/14/04 - added ability to include URLs that start with server names.
Matches
www.blah.com:8103 | www.blah.com/blah.asp?sort=ASC | www.blah.com/blah.htm#blah
Non-Matches
www.state.ga | http://www.blah.ru
Author Rating: The rating for this expression. Brad Dobyns
Title Test Details Pattern Title
Expression
^(?![0-9]{6})[0-9a-zA-Z]{6}$
Description
matches a six character &quot;password&quot; that has to consist of numbers and letters with at least one letter in it.
Matches
123a12 | a12345 | aaaaaa
Non-Matches
111111
Author Rating: Not yet rated. James T. Kirk
Title Test Details Pattern Title
Expression
^[\n &lt;&quot;']*([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)
Description
I use this expression to read bounced email addresses returned by the system administrator. The body of the subject should contain the email address somewhere but the location varies. Examples: To: blah.v.blah@blah-blah.net || blah-blah.blah@blah.com || &lt;blah@blah.org&gt;... Deferred: Connection timed out with mail.blah.org. || blah@blah.net 0n 25-12-2004 21:09
Matches
blah.v.blah@blah-blah.net | blah-blah.blah@blah.com | .@.
Non-Matches
blah@
Author Rating: The rating for this expression. Jorrit Janszen
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 Drop first subdomain from domain name
Expression
^\w+\.((?:\w+\.)+\w+)$
Description
Drops the first subdomain from a domain name with at least one subdomain. Fails if the domain does not contain a subdomain.
Matches
www.google.com | www.wave.google.com | as.vcu.acadia.memco.edu
Non-Matches
google.com | microsoft.com | memco.edu
Author Rating: Not yet rated. Josh Brown
Title Test Details Pattern Title
Expression
^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9})$
Description
Email validation based on Rob Eberhardt's (Thanks, Rob!) email expression, but allows single letter subdomains...
Matches
bob@smith.com | bob@j.smith.museum | bob.smith@a-1.smith.com
Non-Matches
bob@.com | bob@-a.smith.com
Author Rating: Not yet rated. Shaune Stark
Title Test Details Polish stationary phone
Expression
^(\+48\s*)?\d{2}\s*\d{3}(\s*|\-)\d{2}(\s*|\-)\d{2}$
Description
Polish stationary phone number. Mask +48 XX XXXXXXX or +48 XX-XXX-XX-XX or +48 XXXXXXXXX
Matches
+48222222222|+48 22 3333333|+48 22 842 33 33
Non-Matches
+48-22-2222222|+49 22 222222
Author Rating: Not yet rated. Waldemar Lewoń
Title Test Details Polish NIP validation
Expression
^((\d{3}[- ]\d{3}[- ]\d{2}[- ]\d{2})|(\d{3}[- ]\d{2}[- ]\d{2}[- ]\d{3}))$
Description
allow to insert input for polish tax identyfication number (NIP). Mask accepted: XXX-XX-XX-XXX ; XXX-XXX-XX-XX ; XXX XX XX XXX ; XXX XXX XX XX
Matches
222-22-22-222 | 222-222-22-22 | 222 22 22 222 | 222 222 22 22
Non-Matches
2222222222 | XXXXXXXXXX
Author Rating: The rating for this expression. Waldemar Lewoń
Change page:   |    Displaying page 4 of 234 pages; Items 61 to 80

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