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

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

173 regular expressions found in this category!

Expressions in category: Misc

Change page:   |    Displaying page 4 of 9 pages; Items 61 to 80
Title Test Details Pattern Title
Expression
^([0-9A-Za-z@.]{1,255})$
Description
This is an update of Paul Miller's RegEx. It will cut out literal <> but I haven't fully tested it, it's just a quick fix since his didn't work all that well. I also took out the \s. You could add this back in but I use this for very simple password verification, and I certainly have no use for spaces in my passwords.
Matches
BigBlue | 1234.1411 | bob@bob.com
Non-Matches
<>'&amp&lt&rt*^%$
Author Rating: Not yet rated. Cal Guisti
Title Test Details Pattern Title
Expression
<[iI][mM][gG]([^>]*[^/>])
Description
simple little RegExp to get the IMG tag from HTML
Matches
<img src="abc.jpg"> | <img src="abc.jpg"/> | <ImG src="abc.j
Non-Matches
none
Author Rating: Not yet rated. Asim Goheer
Title Test Details Pattern Title
Expression
(^.+\|+[A-Za-z])
Description
Anti-Spam/Spam stopper: Detects all words with the character "|" instead of an "l" or "1"
Matches
| comp|eted | fu|l-sized | annua|ly
Non-Matches
www.fireflyfx.net | www.trustmusic.nl
Author Rating: Not yet rated. Louis Ostendorf
Title Test Details Pattern Title
Expression
(\s*\(?0\d{4}\)?\s*\d{6}\s*)|(\s*\(?0\d{3}\)?\s*\d{3}\s*\d{4}\s*)
Description
UK Phone Number Allows leading and trailing spaces and optional spaces after the dialing code. Initially the expression I posted was \s*0\d{4}\s*\d{6}\s*|\s*0\d{3}\s*\d{7}\s* But this didn't include optional brackets e.g. (01603) 123123 or phone numbers in a London format e.g. 0208 123 1234
Matches
01603 123123 | 0207 1234567 | (0208) 123 1234
Non-Matches
123 123132
Author Rating: Not yet rated. Joe Gass
Title Test Details Pattern Title
Expression
^(\+[1-9][0-9]*(\([0-9]*\)|-[0-9]*-))?[0]?[1-9][0-9\- ]*$
Description
International phone number check - optional country code followed by area code surrounded with '-' or '(' and ')', or just an area code optionally starting with 0, followed by phone numder. The number itself may contain spaces and '-'
Matches
+123(45)678-910 | +123-045-67 89 10 | 01-234-56-78
Non-Matches
123(45)678 91011 | (12)345-678 | +0(12)345-6789
Author Rating: Not yet rated. Dmitry Kandiner
Title Test Details Pattern Title
Expression
{.*}
Description
Simple, but it gave me trouble in the c#...
Matches
{User}, thank you for submitting a new project request!
Non-Matches
Thank you for submitting a new project request!
Author Rating: Not yet rated. scott cole
Title Test Details Simple Microsoft Product Key
Expression
^[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}$
Description
Simple Microsoft product key check.
Matches
12345-12345-12345-12345-12345 | ABCDE-ABCDE-ABCDE-ABCDE-ABCDE | AB5DE-AB5DE-AB5DE-AB5DE-AB5DE
Non-Matches
12345-123-123456-12345 | ABC-ABCDEF-ABCDE-ABCDE | 12AB5-ABC-12AB567-12AB5
Author Rating: Not yet rated. Amos Hurd
Title Test Details Pattern Title
Expression
(([01][\.\- +]\(\d{3}\)[\.\- +]?)|([01][\.\- +]\d{3}[\.\- +])|(\(\d{3}\) ?)|(\d{3}[- \.]))?\d{3}[- \.]\d{4}
Description
167 different US telephone patterns. Options includes a)0 or 1 dial, b)area code, c).+-()space between number dial-area code-number.
Matches
1 (999) 999 9999 | 999 999 9999 | 999 9999
Non-Matches
19999999999 | 9999999999 | 9999999
Author Rating: Not yet rated. Dennis Zweigle
Title Test Details Pattern Title
Expression
^([A-Za-z]\d[A-Za-z][-]?\d[A-Za-z]\d)
Description
Regular expression to match a canadian postal code where it matches a string with or without the hyphen and in upercase or lowercase
Matches
a1a-1a1 | A1A1A1
Non-Matches
1a1-a1a | aaa-aaa | 111-111
Author Rating: Not yet rated. Rico lour
Title Test Details Pattern Title
Expression
(^([1-3]{1}[0-9]{0,}(\.[0-9]{1})?|0(\.[0-9]{1})?|[4]{1}[0-9]{0,}(\.[0]{1})?|5(\.[5]{1}))$)
Description
GPA (Grade Point Average) expression. Validates the standars 0.0 thru 4.0 and also accepts 5.5 -- which I use as unknown.
Matches
0.0 | 4.0 | 5.5
Non-Matches
0. | .9 | 4.1
Author Rating: Not yet rated. Jay Wasser Jr
Title Test Details Pattern Title
Expression
(?<Sedol>[B-Db-dF-Hf-hJ-Nj-nP-Tp-tV-Xv-xYyZz\d]{6}\d)
Description
This regular expression accepts SEDOL (Stock Exchange Daily Official List number, a code used by the London Stock Exchange to identify foreign stocks). To be more exact - it accepts POTENTIAL SEDOL's, since the last, 7th digit of a sedol is a kind of check-sum digit and this reg-ex doesn’t check’s its correctness. Also, despite following to the formal SEDOL definition - its first character should be a consonant character – there are actual sedol’s with the first character, which is a number (e.g. 0067340 for BAA) and they are accepted by this reg-ex.
Matches
0067340 | B01HL06 | 4155586
Non-Matches
12345 | 34A56B7 | 456VGHY
Author Rating: Not yet rated. Alexander Pinsker
Title Test Details Pattern Title
Expression
(^[A-ZÀ-Ü]{1}[a-zà-ü']+\s[a-zA-Zà-üÀ-Ü]+((([\s\.'])|([a-zà-ü']+))|[a-zà-ü']+[a-zA-Zà-üÀ-Ü']+))
Description
Checks if has the first and the last name, and check the capital letters. Use with the RegExp.test method
Matches
Carlos Rodrigues | Cá de Laaa | Crras R. L. Rodrigües
Non-Matches
aaäA
Author Rating: Not yet rated. Carlos R. L. Rodrigues
Title Test Details Pattern Title
Expression
^(\{|\[|\().+(\}|\]|\)).+$
Description
Matches &quot;clan&quot; nicks/names.
Matches
{CLaN}nick | [Clan]Nick | (Clan)Nick
Non-Matches
Nick
Author Rating: Not yet rated. Jag fire
Title Test Details Pattern Title
Expression
(?s)(?:\e\[(?:(\d+);?)*([A-Za-z])(.*?))(?=\e\[|\z)
Description
This expression will match all of the commands(escape codes) used in ANSI files. These are what were used to create the colors/blocks on BBS's for those of us that once dialed into them. http://www.wikipedia.org/wiki/ANSI_escape_code has a reference for ANSI escape codes. http://idledreams.net/lordscarlet/posts/153.aspx shows an example of the engine I have created surrounding the expression
Matches
Hello | Test | 
Non-Matches
abc
Author Rating: Not yet rated. Doug Moore
Title Test Details Pattern Title
Expression
^[^#]([^ ]+ ){6}[^ ]+$
Description
We've come across the situation where we had to extract the IIS-Log entries without the header information. The data is far more complex than the sample given. Explanation: ^[^#] = lines not beginnin with # ([^ ]+ ){6} = 6 times no space until one space [^ ]+ = no spaces allowed... $ = ...until end of line For further explanation don't hesitate to write E-Mail.
Matches
1111 2222 33 44444 55 6 7777
Non-Matches
#IIS Logfile header
Author Rating: Not yet rated. Volker Roth
Title Test Details Pattern Title
Expression
^[AaWaKkNn][a-zA-Z]?[0-9][a-zA-Z]{1,3}$
Description
Simple match for U.S. Amateur Radio Call signs Must start with an A,K,N or W. 1 or two prefix letters (not case sensitive), Exactly one zone digit, One to three suffix digits( not case sensitive). 73
Matches
kd6dun | W9OXZ | kb8ae
Non-Matches
kdd90bz | de7bgw | WV7BXQ5
Author Rating: Not yet rated. David Tersigni
Title Test Details Pattern Title
Expression
(NOT)?(\s*\(*)\s*(\w+)\s*(=|&lt;&gt;|&lt;|&gt;|LIKE|IN)\s*(\(([^\)]*)\)|'([^']*)'|(-?\d*\.?\d+))(\s*\)*\s*)(AND|OR)?
Description
Heres my sql clause parser regexp for recordset filtering. Does recursive query parsing all by its self. Only problem I cant figure is how to match comma separated lists of quoted strings. Tell me if you figure out how! The unicodes in the re was put in by the entry form please replace them with their ascii equivalents to use it.
Matches
Aeroplane LIKE 767 | Movie LIKE 'Star' AND NOT Movie LIKE 'Trek' | Number IN (1,2,3,4,5)
Non-Matches
Hello there | A=EXCELLENT OR | B!=POOR
Author Rating: Not yet rated. Joseph Warwick
Title Test Details Pattern Title
Expression
\p{IsBasicLatin}
Description
Matches any character is the Basic Latin Unicode Range \U0000-U007F (Ascii 0-127) I've blogged about this and other expressions here http://blogs.regexadvice.com/mash/archive/2004/04/17/988.aspx
Matches
ABCxyz | 123 | +-=
Non-Matches
? | ? | ?
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
^(.|\n){0,16}$
Description
Limit Length - limit the length of a text box or other area to contain any character plus new line
Matches
shorter than max
Non-Matches
string longer than max
Author Rating: Not yet rated. David Yack
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
Change page:   |    Displaying page 4 of 9 pages; Items 61 to 80

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