Complete Expression for a standard stats log
^(?<Date>(?<Year>\d{4}|\d{2})-(?<Month>\d{1,2})-(?<Day>\d{1,2}))\s(?<Time>(?<Hour>\d{1,2}):(?<Minute>\d{1,2}):(?<Second>\d{1,2}))\s(?<ClientIP>(?<A>\d{1,3})\.(?<B>\d{1,3})\.(?<C>\d{1,3})\.(?<D>\d{1,3}))\s(?<Username>[\w-]*)\s(?<Method>\w*)\s(?<URI>[\w/-_\.+]*)\s(?<StatusCode>\d{3})\s(?<Bytes>\d*)\s(?<Version>[\w/-_\.+]*)\s(?<UserAgent>[\w/-_\.+;()]*|-)\s(?<Referer>[\w\.-_://]*|-)
Complete Expression for a standard stats log with URI broken into prefix and extension
^(?<Date>(?<Year>\d{4}|\d{2})-(?<Month>\d{1,2})-(?<Day>\d{1,2}))\s(?<Time>(?<Hour>\d{1,2}):(?<Minute>\d{1,2}):(?<Second>\d{1,2}))\s(?<ClientIP>(?<A>\d{1,3})\.(?<B>\d{1,3})\.(?<C>\d{1,3})\.(?<D>\d{1,3}))\s(?<Username>[\w-]*)\s(?<Method>\w*)\s(?<URI>(?<Prefix>[\w/-_\.+]*)\.(?<Ext>\w{0,8}))\s(?<StatusCode>\d{3})\s(?<Bytes>\d*)\s(?<Version>[\w/-_\.+]*)\s(?<UserAgent>[\w/-_\.+;()]*|-)\s(?<Referer>[\w\.-_://]*|-)
Pieces:
Date
(?<Date>(?<Year>\d{4}|\d{2})-(?<Month>\d{1,2})-(?<Day>\d{1,2}))
Time
(?<Time>(?<Hour>\d{1,2}):(?<Minute>\d{1,2}):(?<Second>\d{1,2}))
IP Address
(?<ClientIP>(?<A>\d{1,3})\.(?<B>\d{1,3})\.(?<C>\d{1,3})\.(?<D>\d{1,3}))
UserName
(?<Username>[\w-]*)
Method
(?<Method>\w*)
URI
(?<URI>[\w/-_\.+]*)
(?<URI>(?<Prefix>[\w/-_\.+]*)\.(?<Ext>\w{0,8}))
StatusCode
(?<StatusCode>\d{3})
Bytes
(?<Bytes>\d*)
Version
(?<Version>[\w/-_\.+]*)
UserAgent
(?<UserAgent>[\w/-_\.+;()]*|-)
Referrer
(?<Referer>[\w\.-_://]*|-)
London, UK
ftp://weather.noaa.gov/data/observations/metar/decoded/EGLL.TXT
Birmingham, AL
ftp://weather.noaa.gov/data/observations/metar/decoded/KBHM.TXT"
Nashville, TN
ftp://weather.noaa.gov/data/observations/metar/decoded/KBNA.TXT"
New York, NY
ftp://weather.noaa.gov/data/observations/metar/decoded/KLGA.TXT
Richmond, VA
ftp://weather.noaa.gov/data/observations/metar/decoded/KRIC.TXT
---- = <hr />
__strong__ = <strong>strong</strong>
_emphasis_ = <em>emphasis</em>
^super^ = <sup>super</sup>
~sub~ = <sub>sub</sub>
%small% = <small>small</small>
$big% = <big>big</big>
`CEO`(Chief Executive Officer) = <accronym title="Chief...">CEO</acronym>
`term`=(definition) = <dfn title="definition">term</dfn>
---delete--- = <del>delete</del>
+++insert+++ = <ins>insert</ins>
headers
# level one heading
## level two
### level three
#### level four
##### level five
lists
numbered
1. list item
2. list item 2
bulleted
+ list item
+ list item two
or
- list item
- list item two
or
* list item
* list item two
images
![alt text][linkid]
![alt text](image url)
[linkid] url "alternate text or title attribute"
links
[link text][linkid]
[link text](link url)
[linkid] url "alternate text or title attribute"