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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Block common public domains & validate email
Expression
\w+([-+.]\w+)*@(?!(hotmail|gmail|yahoo|msn|excite|lycos|aol|live)\.com$)\w+([-.]\w+)*\.\w+([-.]\w+)*
Description
Should you need to validate that an email address is correctly formmatted and need to block hotmail and gmail, this expression will do it for you. Thanks to Sergei Z from regexadvice.com
Matches
joe@somewhere.com | jo-elaine@myfunplace.com
Non-Matches
joe@gmail.com | joe@a
Author Rating: Not yet rated. Dan Brewerton
Title Test Details Find two words, any characters, then number
Expression
(Word1|Word2).*?(10|[1-9])
Description
If you have one or more words that you are searching for, random text and then a number at the end from 0 to 10, this regex should work.
Matches
Word1: I need to extract this substring starting with testing. 8
Non-Matches
This is a test, again I am test
Author Rating: Not yet rated. Dan Brewerton
   Displaying page 1 of 1 pages; Items 1 to 2

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