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

   Displaying page 1 of 1 pages; Items 1 to 3
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 URL validation .NET URLvalidation
Expression
^(ht|f)tp(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?([\d\w\.\/\%\+\-\=\&\?\:\\\"\'\,\|\~\;]*)$
Description
Validates URL to see if the input pattern is a valid URL (ftp, http, https, etc); can be easily modified to support others such as file:/// | Pattern has been tested using .NET runtime engine | localhost literal support for windows IIS server and visal studio (2005 or later) built-in asp.net web-server
Matches
http://regexlib.com | http://www.google.com | ftp://teach.me.regex/checkpattern/o | http://www.google.com/search?hl=en&source=hp&q=asp.net | https://secure.mailserver.com | http://localhost/mypage.html | http://localhost:89783/mypage.aspx | http://go.com | http://forum.whoisyourdaddy.org/index.html?RegID=7449046&Daddy=dontknow&son=me
Non-Matches
http:// | http://whoisyourdaddy | httpOrhttpsOrftp.com
Author Rating: The rating for this expression. Eric Wai Chan
Title Test Details Match Default Document + Optional Querystring
Expression
^~/(?:default\.aspx)?(?:\?=.*)?$
Description
Designed for asp.net default document matching. It allows either a plain url (~/) or a default document url (~/default.aspx) both with an optional querystring. Cassini and IIS7 handle default document matching differently. The user could type it either way. The breadcrumb / sitemap system is funny about omitting default.aspx. Note: Doesn't handle #fragements
Matches
/default.aspx | /default.aspx?query=string | / | /?query=string
Non-Matches
/default.aspx#fragment | /default.aspx?query=string#fragment | /#fragment | /?query=string#fragment
Author Rating: Not yet rated. Matthew Harris
   Displaying page 1 of 1 pages; Items 1 to 3

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