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

Change page:   |    Displaying page 323 of 332 pages; Items 6441 to 6460
Title Test Details Phone Brazil
Expression
^((\(0?[1-9][0-9]\))|(0?[1-9][0-9]))[ -.]?([1-9][0-9]{3})[ -.]?([0-9]{4})$
Description
Matches Brazilian phone numbers, includes DDD (long-distance call) with or without 0. Accepts characters -, . and [space] as separators.
Matches
011 5555-1234 | (011) 5555 1234 | (11) 5555.1234 | 1155551234
Non-Matches
(011 5555-1234 | (01) 5555 1234 | (11) 0555.1234 | (11) 5555 abcd
Author Rating: The rating for this expression. Cleiton Francisco
Title Test Details Any date with char months
Expression
((MON|TUE|WED|THU|FRI|SAT|SUN)[A-Z]*)*[\ ,-]*(\d|\d{2})*(st|nd|rd|th)*[\ ,-]*(JAN|FEB|MAR|MAY|APR|JUL|JUN|AUG|OCT|SEP|NOV|DEC)[A-Z]*[\ ,]*(\d|\d{2}|\d{4})*(st|nd|rd|th)*([\ ,])*'*(\d{2}|\d{4})*\b
Description
Match any date with non digit, text months. Includes day of week prefix. Very permissive. http://regexr.com/3gtaf
Matches
Wednesday March 25, 2015 | 14 MAR 2017 | 4 MAR, 2017 | March 4, 2017 | Tue March 4, 2017 | Saturday March 4, 2017 | Sun March 24, 2017 | March 3rd | 1st March | May | Oct | Jun 3rd, '17 | Tue 4th Nov '17
Non-Matches
5-23-18 03/25/2015 2015-03-25 2015/03/25 2015.03.25
Author Rating: Not yet rated. Stoic Being
Title Test Details International Phone Pattern
Expression
^(1\s*[-\/\.]?)?(\((\d{3})\)|(\d{3}))\s*([\s-./\\])?([0-9]*)([\s-./\\])?([0-9]*)$
Description
This pattern matches most international phone numbers using various versions of phone number patters.
Matches
(305) 555-1234 | 305-555-1234 | 305 555 1234 | 011-52-71405555
Non-Matches
ABCD
Author Rating: Not yet rated. Vincent Faller
Title Test Details Decimal Pattern
Expression
^(\d{1,8}|(\d{0,8}\.{1}\d{1,2}){1})$
Description
Validates a decimal with up to 8 whole places and up to two decimal places
Matches
1 | 1.22 | 12345678.11 | .34
Non-Matches
123456789 | 1.223234 | 123456789.11
Author Rating: Not yet rated. Vincent Faller
Title Test Details Special Characters
Expression
^(a-z|A-Z|0-9)*[^#$%^&*()']*$
Description
Does not allow these characters in a string #$%^&*()'
Matches
Test | Whatever Text | D://folder/file.ext
Non-Matches
word's | test# | (something)
Author Rating: The rating for this expression. Vincent Faller
Title Test Details Currency
Expression
^\$( )*\d*(.\d{1,2})?$
Description
Validates US currency but allows for spaces between the dollar sign and dollar amount. If there is cents the period validates to two decimal places
Matches
$100.00 | $100 | $10.25
Non-Matches
100. | $10.233 | $10.
Author Rating: Not yet rated. Vincent Faller
Title Test Details Font Sizes
Expression
^\d+\x20*([pP][xXtT])?$
Description
It can be used to validate Font Sizes. Thanks to Gideon Engelberth for the shorter version of my original expression.
Matches
1px | 100 PT | 20Px
Non-Matches
1abc | px | 1 sdfs
Author Rating: Not yet rated. Vincent Faller
Title Test Details Alphanumeric Expression
Expression
^[a-zA-Z0-9\s]+$
Description
Alphanumeric expression with spaces
Matches
123asd | 111 ee11e | 223 eeddd23
Non-Matches
12' ggg | <>dfdg 444 | dfgdfg/dfgd
Author Rating: The rating for this expression. Vincent Faller
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: The rating for this expression. 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
Change page:   |    Displaying page 323 of 332 pages; Items 6441 to 6460

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