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

Change page:   |    Displaying page 404 of 410 pages; Items 8061 to 8080
Title Test Details Floating Complex Number
Expression
^([-+]?(\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?[r]?|[-+]?((\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?)?[i]|[-+]?(\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?[r]?[-+]((\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?)?[i])$
Description
DESCRIPTION Parses a complex number of kind 'a+bi' from an input string. Please remove all spaces from the input string before using this regex pattern. MATCHING EXAMPLES '[]' means is an optional parameter; '|' means OR; '+' is the positive sign; '-' is the negative sign; '#' is one ore more decimal digits; 'E|e' are the valid exponent symbols; '...' is the range for the exponent; 'r' means the real part of complex number; 'i' means the imaginary part of complex number. NOTE Has the imaginary part of the input string not a numeric value (e.g. '5-i' is a valid format) it should be interpreted as '5-1i'!
Matches
[+|-]#[.[#]]|[#].#[E|e[+|-]0...299][r] -OR- [+|-][#[.[#]]|[#].#[E|e[+|-]0...299]]i -OR- [+|-]#[.[#]]|[#].#[E|e[+|-]0...299][r]+|-[#[.[#]]|[#].#[E|e[+|-]0...299]]i
Non-Matches
[+|-][.][E|e[+|-][0...299]][r] -OR- [+|-].[E|e[+|-][0...299]]i -OR- [+|-][.][E|e[+|-][0...299]][r]+|-[#[.[#]]|[#].#[E|e[+|-][0...299]]]i -OR- any number with more than one sign or decimal seperator -OR- any string with non-leading signs on mantissa and on exponent
Author Rating: The rating for this expression. Fischer, M.
Title Test Details Floating Complex Number Accessible
Expression
^((?<r>([-+]?(\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?[r]?))|(?<i>([-+]?((\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?)?[i]))|(?<r>([-+]?(\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?[r]?))(?<i>([-+]((\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?)?[i])))$
Description
This is the same regex pattern as 'Floating Complex Number' but extented by group names. This makes it much easier to extract the parts of the complex number (e.g. string realPart=myMatch.Result("${r}");string imgPart=myMatch.Result("${i}"); ).
Matches
see base example
Non-Matches
see base example
Author Rating: Not yet rated. Fischer, M.
Title Test Details Floating Number
Expression
^([-+]?(\d+\.?\d*|\d*\.?\d+))$
Description
DESCRIPTION Parses a floating number (such as double or float) from an input string. Please remove all spaces from the input string before using this regex pattern. MATCHING EXAMPLES The following symbols are used: '[]' means optional parameter; '|' means OR; '+' is the positive sign; '-' is the negative sign; '#' means one or more decimal digits; '.' is decimal seperator.
Matches
[+|-]#[.[#]]|[#].#
Non-Matches
[+|-][.] -OR- any floating number with an exponent (e.g. 1.0E-8) -OR- any string with more than one sign or decimal seperator -OR- any string with non-leading sign
Author Rating: Not yet rated. Fischer, M.
Title Test Details Floating Number With Exponent
Expression
^([-+]?(\d+\.?\d*|\d*\.?\d+)([Ee][-+]?[0-2]?\d{1,2})?)$
Description
DESCRIPTION Parses a floating number with an optional exponent from an input string. Please remove all spaces from the input string before using this regex pattern. MATCHING EXAMPLES The following symbols are used: '[]' means an optional parameter; '|' means OR; '+' means the positive sign; '-' means the negative sign; '#' means one or more numbers (0...9); '.' is the decimal seperator; 'E|e' are the valid exponent symbols; '...' is the range of values for the exponent.
Matches
[+|-]#[.[#]]|[#].#[E|e[+|-]0...299]
Non-Matches
[+|-][.][E|e[+|-][0...299]] -OR- [+|-]#[.[#]]|[#].#E|e[+|-]300...∞ -OR- any string with more than one sign on mantissa or on exponent -OR- any string with non-leading signs on mantissa or exponent -OR- any string with more than one decimal seperator on mantissa | any string with one or more decimal seperators on exponent
Author Rating: Not yet rated. Fischer, M.
Title Test Details Pattern Title
Expression
^(?(^00000(|-0000))|(\d{5}(|-\d{4})))$
Description
US zip code expression that disallows 00000 or 00000-0000 for either ZIP or ZIP+4. Great for web site validation.
Matches
12345 | 12345-6789
Non-Matches
00000 | 00000-0000 | a4650-465s
Author Rating: Not yet rated. Paul Duncan
Title Test Details Comma separated Integers
Expression
^((\d{1,3}(,\d{3})*)|(\d{1,3}))$
Description
Matches all properly formatted integers of 1 or more integer with commas separating each group of 3 integers
Matches
10 | 100 | 1,000 | 1,000,000,000,000
Non-Matches
1000 | 1,0000 | 1000,000
Author Rating: Not yet rated. Colby Brown
Title Test Details Pattern Title
Expression
@{2}((\S)+)@{2}
Description
This will match results in a template situation. For example: template reads Dear @@Name@@, .... would become Dear John, If you dont want to use the @@ change the @ to what ever characters you want.
Matches
@@test@@ | @@name@@ | @@2342@@
Non-Matches
@test@ | @@na me@@ | @@ name@@
Author Rating: Not yet rated. john hamman
Title Test Details File Name
Expression
^([a-zA-Z]:\\)?[^\x00-\x1F"<>\|:\*\?/]+\.[a-zA-Z]{3,4}$
Description
This matches a valid windows filename. Not a valid path.I wanted something simple that covered all the bases
Matches
file.txt | fie.txt.pdf | file(with parenthesis).pdf
Non-Matches
*file.pdf | file.tx
Author Rating: The rating for this expression. Jose Paulino
Title Test Details Pattern Title
Expression
(^0[1-9]\d{1}\s\d{4}\s?\d{4}$)|(^0[1-9]\d{2}\s\d{3}\s?\d{4}$)|(^0[1-9]\d{2}\s\d{4}\s?\d{3}$)|(^0[1-9]\d{3}\s\d{3}\s?\d{2}$)|(^0[1-9]\d{3}\s\d{3}\s?\d{3}$)|(^0[1-9]\d{4}\s\d{3}\s?\d{2}$)|(^0[1-9]\d{4}\s\d{2}\s?\d{3}$)|(^0[1-9]\d{4}\s\d{2}\s?\d{2}$)
Description
This will match valid UK telephone numbers. This adheres to ofcom's code and number length guide available at http://www.ofcom.org.uk/licensing_numbering/numbers/num_user_guide#1b Brackets and international codes are not allowed. A space MUST be used after the dialling code, and spaces at the expected points within the remainder of the number can be used if need be, but not nessesary, hence 0208 6473 373 is the same as 0208 647 3373 and 0208 6473373
Matches
01323 293 374 | 020 73643763 | 017354 7478
Non-Matches
02 83838 74 | (01323) 828223 | +44 88282 828
Author Rating: The rating for this expression. rob collyer
Title Test Details Version Number
Expression
"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"
Description
this is regular expression for version number upto 3 digits
Matches
111.222.333.444
Non-Matches
characters
Author Rating: Not yet rated. chetan kela
Title Test Details NHS Hospital Number (D Number)
Expression
[DJF]{1}[0-9]{5,8}
Description
I needed to ensure that a valid hospital number is entered into one of my systems. They must be prefixed with D,J,F (upper case) and a number (5 to 8 digits in length).
Matches
D82837 J23578 F23546530
Non-Matches
K23456 D4573 J354 F3493849384
Author Rating: Not yet rated. max b
Title Test Details US Number Format
Expression
^[+-]?\d+(\,\d{3})*\.?\d*\%?$
Description
Matches standard US number formats.
Matches
1234 | 1,234 | 12.34 | +123 | -123.4 | 1,234,567.890 | 100%
Non-Matches
abc | 12-34 | 1.234,56 | 1,2345
Author Rating: Not yet rated. Roger Soucy
Title Test Details Pattern Title
Expression
^\d{3}-\d{7}[0-6]{1}$
Description
Airway bill no that allows only the format 999-99999998 and does not allow the last digit to be 7,8,9.
Matches
999-99999995 | 123-47859683 | 156-78965422
Non-Matches
123-47859689 | 9999999999 | 9588-58964
Author Rating: The rating for this expression. DOZENROSES T
Title Test Details Pattern Title
Expression
(^0.*[1-9]*)|(^860+)|(^8613)|(\D)|([0-9])
Description
forbidden tele numbers when it starts with 0, 860+,8613,character or has any SBC case. you can also use it to any international phone dialed by E1 ,etc . this regex has been tested by java, perl,.net PS: the last regex [0-9]is in SBC case
Matches
0234568 | 8601063971622 | 1-221555
Non-Matches
861063971622
Author Rating: Not yet rated. qi gao
Title Test Details Visa Credit Card
Expression
(^4\d{12}$)|(^4[0-8]\d{14}$)|(^(49)[^013]\d{13}$)|(^(49030)[0-1]\d{10}$)|(^(49033)[0-4]\d{10}$)|(^(49110)[^12]\d{10}$)|(^(49117)[0-3]\d{10}$)|(^(49118)[^0-2]\d{10}$)|(^(493)[^6]\d{12}$)
Description
Matches Visa CC types 13 or 16 digits starting with 4 including Visa CC, Visa ATM only, Visa Electron and Visa Delta. Safe for international and will NOT match "^(49)" Switch debit cards.
Matches
4111111111111111
Non-Matches
4903020000000008
Author Rating: Not yet rated. brad
Title Test Details Maestro Credit Card
Expression
(^(5[0678])\d{11,18}$) |(^(6[^0357])\d{11,18}$) |(^(601)[^1]\d{9,16}$) |(^(6011)\d{9,11}$) |(^(6011)\d{13,16}$) |(^(65)\d{11,13}$) |(^(65)\d{15,18}$) |(^(633)[^34](\d{9,16}$)) |(^(6333)[0-4](\d{8,10}$)) |(^(6333)[0-4](\d{12}$)) |(^(6333)[0-4](\d{15}$)) |(^(6333)[5-9](\d{8,10}$)) |(^(6333)[5-9](\d{12}$)) |(^(6333)[5-9](\d{15}$)) |(^(6334)[0-4](\d{8,10}$)) |(^(6334)[0-4](\d{12}$)) |(^(6334)[0-4](\d{15}$)) |(^(67)[^(59)](\d{9,16}$)) |(^(6759)](\d{9,11}$)) |(^(6759)](\d{13}$)) |(^(6759)](\d{16}$)) |(^(67)[^(67)](\d{9,16}$)) |(^(6767)](\d{9,11}$)) |(^(6767)](\d{13}$)) |(^(6767)](\d{16}$))
Description
Meastro ONLY card matching - begins with "50" or "56-58" or "6" & 13 to 20 total digits. Overlap of Discover, Solo and Switch is handled and NOT matched.
Matches
5600000000000003
Non-Matches
6011000000000004
Author Rating: The rating for this expression. brad
Title Test Details MasterCard Credit Card
Expression
^5[1-5]\d{14}$
Description
Matches MasterCard credit cards. International safe, no overlap with other cards.
Matches
5100000000000008
Non-Matches
201400000000009
Author Rating: Not yet rated. brad
Title Test Details Discover Credit Card
Expression
(^(6011)\d{12}$)|(^(65)\d{14}$)
Description
Discover Credit Card matching. International safe, no overlap
Matches
6011000000000004
Non-Matches
4508750000000009
Author Rating: Not yet rated. brad
Title Test Details AMEX Credit Card
Expression
(^3[47])((\d{11}$)|(\d{13}$))
Description
AMEX Credit Card match. International safe
Matches
340000000000009
Non-Matches
4508750000000009
Author Rating: Not yet rated. brad
Title Test Details Solo Credit card
Expression
(^(6334)[5-9](\d{11}$|\d{13,14}$)) |(^(6767)(\d{12}$|\d{14,15}$))
Description
Solo Credit Card match. International safe.
Matches
6334500000000003
Non-Matches
3528000000000007
Author Rating: Not yet rated. brad
Change page:   |    Displaying page 404 of 410 pages; Items 8061 to 8080

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