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

Change page:   |    Displaying page 416 of 425 pages; Items 8301 to 8320
Title Test Details Pattern Title
Expression
href[ ]*=[ ]*('|\")([^\"'])*('|\")
Description
the regex's on this site for pulling links off a page always seemed to be faulty, or at least never worked with PHP, so i made this one. simple, as i'm an amateur with regex's, but stumbled thru it and this one actually works. tested with PHP function: preg_match_all("/href[ ]*=[ ]*('|\")([^\"'])*('|\")/",$string,$matches)
Matches
href="index.php" | href = 'http://www.dailymedication.com' | href = "irc://irc.junk
Non-Matches
href=http://www.dailymedication.com
Author Rating: The rating for this expression. Jason Paschal
Title Test Details Days in a Class Schedule
Expression
^M{0,1}T{0,1}W{0,1}(TH){0,1}F{0,1}S{0,1}(SU){0,1}$
Description
Matches a string if it is valid in the form of MWF or TTHS. Maybe used for validating the "days part" of a class schedule field. The string should only accept any of the ff set of letters: 'M' 'T' 'W' 'TH' 'F' 'S' 'SU' . Only one instance of these set of letters is accepted.
Matches
MWF | TTHS | MT | WFS | MFSU
Non-Matches
MM | WM | FTH | SM
Author Rating: Not yet rated. rodel surat
Title Test Details 12-hr Time
Expression
^(([0][0-9]|[1][0-2])|[0-9]):([0-5][0-9])( *)((AM|PM)|(A|P))$
Description
Matches a string if it is a valid time in the format of "HH:MM AM" or "HH:MM A".
Matches
1:30 AM | 01:20 AM | 10:00A | 11:50P
Non-Matches
13:00 A | 01:5 AM
Author Rating: The rating for this expression. rodel surat
Title Test Details Phone number parser
Expression
^(?:[\+]?[\(]?([\d]{1,3})[\s\-\.\)]+)?(?:[\(]?([\d]{1,3})[\s\-\/\)]+)([2-9][0-9\s\-\.]{6,}[0-9])(?:[\s\D]+([\d]{1,5}))?$
Description
Parses most phone numbers into four groups: country code, area code, number, and extension.
Matches
011-656-555-1234 | (217)555-1234 | +82-10-5551-2345 | +(82) 10-5551-2345 | (907) 555-1234 | +886-2-55512345 | 1-416-555-1234 | 714 555 1234 | 714 555 1234 / 1234 | +886-2-55512345 x 1234 | +886-2-55512345x1234 | 1-416-555-1234 ext 1234
Non-Matches
7735551234 | +11231234567 | 1(123)1234567
Author Rating: The rating for this expression. Bill Ingram
Title Test Details IP Tables
Expression
^(?<Date>.+\s\d+\s\d+\:\d+\:\d+).+\:.+\:(?<Traffic>.+)\:(?<Rule>.+)\:IN\=(?<InboundInterface>.+)\sOUT\=(?<OutboundIntercace>.*?)\s(?:MAC\=(?<MacAddress>.+)\s|)SRC\=(?<Source>.+)\sDST\=(?<Destination>.+)\sLEN\=.+TOS\=.+PROTO\=(?<Protocol>.+)\sSPT\=(?<SourcePort>.+)\sDPT\=(?<DestinationPort>.+)\s.+$
Description
The goal of my regular expression is to allow me to break apart IP Table log files so that I can build a basic web front-end to allow me to view the traffic on the network. The MAC address is optional, because the way that this firewall works, is by providing the MAC address when the outbound address is not available.
Matches
Jul 20 13:05:08 123.123.123.123 kernel: Shorewall:loc2net:REJECT:IN=eth0 OUT=eth1 SRC=444.333.222.111 DST=111.222.333.444 LEN=59 TOS=0x00 PREC=0x00 TTL=127 ID=12267 PROTO=UDP SPT=2121 DPT=53 LEN=39
Non-Matches
Anything Else
Author Rating: The rating for this expression. Sean McIlvenna
Title Test Details Pattern Title
Expression
(?<=[-{1,2}|/])(?<name>[a-zA-Z0-9]*)[ |:|"]*(?<value>[\w|.|?|=|&|+| |:|/|\\]*)(?=[ |"]|$)
Description
Parses command line strings into name value pairs
Matches
-path:c:\test path\temp -param "spaced string" -x
Non-Matches
"this is a non matched string"
Author Rating: Not yet rated. Gavin Hay
Title Test Details Invalid IF STATEMENT finder
Expression
if\s[(][A-Za-z]*\s[=]\s
Description
finds if statements with only one = sign.
Matches
if ( aces = true ) | if ( alice = 100)
Non-Matches
if ( aces != true) | if ( alice === 100)
Author Rating: The rating for this expression. Joel Kirchartz
Title Test Details Pattern Title
Expression
\b((?#optional port)(https?|ftp|file)://)? (?#sub domain)([a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+ (?#top domain)(com\b|edu\b|biz\b|gov\b|in(?:t|fo)\b|mil\b|net\b|org\b|[a-z][a-z]\b) (?#optional port)(:\d+)? (?#optional path)(/[-a-z0-9_:\@&amp;?=+,.!/~*'%\$]*)* (?#not ending in)(?&lt;![.,?!]) (?#not enclosed in)(?!((?!(?:&lt;a )).)*?(?:&lt;/a&gt;)) (?#or enclosed in)(?!((?!(?:&lt;!--)).)*?(?:--&gt;))
Description
Yet Another URL Search. Useful for capturing URLs in raw text. Ignores URLs in HREF and comments. Turn off whitespacing to test!
Matches
http://www.google.com | google.com | http://some-domain.net/very/long/path/123.html
Non-Matches
subdomain.NonExistentTopDomain | &lt;a href=&quot;http://www.google.com&quot;&gt;www.google.com&lt;/
Author Rating: Not yet rated. Simon Ferguson
Title Test Details Windows Folder Validation
Expression
^[^\\\/\?\*\"\>\<\:\|]*$
Description
Validates entry for a valid Windows folder name. Excludes all forbidden characters.
Matches
New Folder
Non-Matches
New ' Folder
Author Rating: The rating for this expression. Ben Leishman
Title Test Details Self Close Valid HTML Tags
Expression
<(?<!\\?|\\/)([^>]*)>\\r*\\n<\\/(?=br|hr|img|input|link|param)[^>]*>
Description
This pattern searches for tags in HTML that should be self closing but currently aren't and self closes them. This is useful if you are doing some HTML parsing.
Matches
<br> CRLF </br> etc.
Non-Matches
<textarea> CRLF </textarea> etc.
Author Rating: Not yet rated. Iain Dooley
Title Test Details Pattern Title
Expression
(^N/A$)|(^[-]?(\d+)(\.\d{0,3})?$)|(^[-]?(\d{1,3},(\d{3},)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{1,3})?)$)
Description
This pattern matches a decimal value with up to 3 digits after the decimal. Comma is allowed as a thousands separator but not required. N/A is also allowed.
Matches
405.234 | 50 | 213123.456 | -1 | N/A
Non-Matches
bathreader | this is N/A | 3.14159 | +10
Author Rating: Not yet rated. Jon Galloway
Title Test Details Pattern Title
Expression
&lt;[^&gt;]*name[\s]*=[\s]*&quot;?[^\w_]*&quot;?[^&gt;]*&gt;
Description
This RX is used to find get all named tags in an html string. If you find a problem with it, please email drew@lordstrange.com
Matches
&lt;input type = text name = &quot;bob&quot;&gt; | &lt;select name = &quot;fred&quot;&gt; | &lt;form
Non-Matches
&lt;input type = submit&gt; | &lt;font face = &quot;arial&quot;&gt; | The drity brown fox stank like
Author Rating: Not yet rated. Andrew Freese
Title Test Details Pattern Title
Expression
("[^"]*")|('[^\r]*)(\r\n)?
Description
Will match a VBScript string and/or comment Ex: ' userinfo strUsername = &quot;tomsve&quot; iAge = 20 ' temp strPassword = &quot;halloj&quot; ...Would result in the following matches: ' userinfo &quot;tomsve&quot; ' temp &quot;halloj&quot; Good luck! Tom S. info@tomsvensson.com
Matches
"my string" | "a string with ' in it" | ' comment
Non-Matches
asd "
Author Rating: Not yet rated. Tom Svensson
Title Test Details RFC (Registro Federal de Contribuyentes)
Expression
^(?<nombre>\D{4})(?<fechanac>\d{6})(?<homoclave>.{1}\D{1}\d{1})?$
Description
Validacion de Registro Federal de Contribuyentes (RFC). Para México. Valida 4 caracteres alfabéticos para el nombre, 4 numéricos para la fecha de nacimiento, y, opcional, 3 alfanuméricos para la homoclave, de los cuales, el primero puede ser numérico o alfabético, el segundo es alfabetico y el tercero siempre es numérico.
Matches
CAET7305157T4
Non-Matches
NA
Author Rating: Not yet rated. Hector Garcia
Title Test Details Top cash for Auto Dismantlers in Sydney
Expression
:-)
Description
Auto dismantlers in Sydney provide the car dismantling facility for all brands, makes and models. ANZAUTO pay top and best cash for dismantle cars instantly at the time of towing and pick up. We also give a free online quote for dismantle cars by calling @402710109.
Matches
Car Wreckers
Non-Matches
Car
Author Rating: Not yet rated. Markson Jonas
Title Test Details UNIX ls -l
Expression
^([A-Za-z\-]+)\s+(\w+)\s+([A-Za-z0-9_\-\.]+)\s+([A-Za-z0-9_\-\.]+)\s+(\d+)\s+(.{3} [0-9 ]{2} ([0-9][0-9]:[0-9][0-9]| [0-9]{4}))\s+(.+)$
Description
GLOB the output of an "ls -l" command to extract specific details. It takes into account issues with older files/directories having a year in place of an hour:minute entry.
Matches
drwxr-xr-x 5 user dba 1024 Sep 24 21:24 dirname
Non-Matches
drwxr-xr-x 5 user dba 1024 Sep 24_21:24 dirname
Author Rating: Not yet rated. Donald Kemper
Title Test Details Pattern Title
Expression
^((((31\/(0?[13578]|1[02]))|((29|30)\/(0?[1,3-9]|1[0-2])))\/(1[6-9]|[2-9]\d)?\d{2})|(29\/0?2\/(((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))|(0?[1-9]|1\d|2[0-8])\/((0?[1-9])|(1[0-2]))\/((1[6-9]|[2-9]\d)?\d{2})) (20|21|22|23|[0-1]?\d):[0-5]?\d:[0-5]?\d$
Description
this expression validates a date-time field in European d/m/y h:m:s format. It is a european variation of Michael Ash's date-validation expression in this library. The days are validated for the given month and year. Leap years are validated for all 4 digits years from 1600-9999, and all 2 digits years except 00
Matches
29/02/2004 20:15:27 | 29/2/04 8:9:5 | 31/3/2004 9:20:17
Non-Matches
29/02/2003 20:15:15 | 2/29/04 20:15:15 | 31/3/4 9:20:17
Author Rating: The rating for this expression. martin devos
Title Test Details img
Expression
<img[^>]* src=\"([^\"]*)\"[^>]*>
Description
It searches for a IMG tag and group information about source of image.
Matches
<img src="joka.jpg" /> <img src="joka.jpg">
Non-Matches
<img> <img src=dada>
Author Rating: Not yet rated. Jan Filipowski
Title Test Details Serie of numbers
Expression
^(\d+(,\d+)*)+$
Description
Evaluates an 'n' series of non decimal numbers separated by a coma
Matches
1 | 1,2,3,4,5 | 1234,54321,0987654321
Non-Matches
,1 | 1,2,3, | 1.2,2.3,3
Author Rating: Not yet rated. el slayer
Title Test Details Pattern Title
Expression
^\d{3}\s?\d{3}$
Description
This can be used to match indian style pincodes / postal codes used by the indian postal departments which are 6 digits long and may have space after the 3rd digit
Matches
400 099 | 400099 | 400050
Non-Matches
2345678 | 12345 | asdf
Author Rating: The rating for this expression. anup kallingal
Change page:   |    Displaying page 416 of 425 pages; Items 8301 to 8320

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