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 7 of 9 pages; Items 121 to 140
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
Title Test Details Pattern Title
Expression
([A-Zäöü0-9\/][^a-z\:\,\(\)]*[A-Zäöü0-9])($|[\.\:\,\;\)\-\ \+]|s\b)
Description
Used to dynamically find acronyms in a sentence. The first pair of brackets gets the acronym, the second gets the text after the acronym.
Matches
ASN.1 | REGEXP
Non-Matches
***
Author Rating: Not yet rated. Eric Lewis
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
^[^#]([^ ]+ ){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*(=|<>|<|>|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
^[0-9]{4}\s{0,2}[a-zA-z]{2}$
Description
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters.
Matches
4006 AB | 4006ab | 4006 AB
Non-Matches
4006.ab | 4006_ab | 4006/ab
Author Rating: Not yet rated. martijn db
Title Test Details Pattern Title
Expression
^\(?082|083|084|072\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$
Description
I modified the existing phone number regex for another user looking to only allow 082, 083, 084, or 072 exchanges. Written by Jason Gaylord
Matches
082-131-5555 | 083-145-654 | 072 555 1212
Non-Matches
131-253-4564 | 5551212 | 800 555 1212
Author Rating: Not yet rated. Jason N. Gaylord
Title Test Details Pattern Title
Expression
^[0-9]{2}[-][0-9]{2}[-][0-9]{2}$
Description
Validates a UK Bank Sort code
Matches
09-01-29 | 05-06-25
Non-Matches
090125
Author Rating: Not yet rated. Richard Slade
Title Test Details Pattern Title
Expression
^([a-zA-Z0-9!@#$%^&*()-_=+;:'"|~`<>?/{}]{1,5})$
Description
This Regular expression validates a string that contains all printable characters with a minimum length of 1 and maximum length of 5. Obviously the min and max can be changed to meet the users needs. ^([a-zA-Z0-9!@#$%^&*()-_=+;:'"|~`<>?/{}]{1,5})$ This is the string, I keep getting &lt and other characters when I save it.
Matches
ilove | $%*!_ | it
Non-Matches
123456 | This is great
Author Rating: Not yet rated. Michael Matusiewicz
Title Test Details AMD Athlon/Duron Codes (not Athlon 64)
Expression
^((A(((H[MX])|(M(P|SN))|(X((D[ACH])|(M[DS]))?)))?)|(K7(A)?)|(D(H[DLM])?))(\d{3,4})[ABD-G][CHJK-NPQT-Y][Q-TV][1-4][B-E]$
Description
Matches valid reference codes for AMD Athlon and Duron processors (not Athlon 64).
Matches
AXDA3200DKV4E | A1000AMT3B | D800AUT1B
Non-Matches
N/A
Author Rating: Not yet rated. Amos Hurd
Title Test Details Pattern Title
Expression
^([a-zA-Z.\s']{1,50})$
Description
This is just a regular special char expression used to get the hax0rs off your back (hopefully). You can use this for regular open name checking if you wanted. It only fails on the insert of anything other than a-z, A-Z, and ' or whitespace. I'm open to suggestions, but try to email them to me as well as posting them to help others. Thanks.
Matches
Jon M. Doe | Tim L. O'Doul | ...'''''
Non-Matches
Doe, Jon | <>,;:"?/ | %\$#@!
Author Rating: Not yet rated. John Smart
Title Test Details Pattern Title
Expression
[^a-zA-Z \-]|( )|(\-\-)|(^\s*$)
Description
This match fileds contain only letters, a single hyphen, a single space, not empty
Matches
Steven Wang33 | Jing Xu
Non-Matches
Steven Wang | Jing Xu
Author Rating: Not yet rated. Jun Wang
Title Test Details Pattern Title
Expression
^[+]447\d{9}$
Description
Validates a UK mobile phone number in International format
Matches
+447974405524 | +447932205578
Non-Matches
447974407726 | +4407974407724
Author Rating: Not yet rated. Richard Slade
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 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
[1-2][0|9][0-9]{2}[0-1][0-9][0-3][0-9][-][0-9]{4}
Description
Swedish person number. Don't work on persons older then 100 years, but they are so few that it shouldn't be a problem. Easy to fix, but I choose not to accept oldies...
Matches
19740609-7845 | 19811116-7845 | 20010913-7598
Non-Matches
21003612-9999 | 18790505-4545 | 19740641-5559
Author Rating: Not yet rated. Tomas Axelsson
Change page:   |    Displaying page 7 of 9 pages; Items 121 to 140

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