Regular Expressions 101

Library entries

SE II Lab 3

Vote

0

Regular Expression
pcre

/
(?<date>^\d{4}-\d{2}\-\d{2}\s)(?<time>\d{2}\:\d{2}\:\d{2}\s)(?<time_taken>\d+\s)(?<c_ip>\d+\.\d+\.\d+\.\d+\s)(?<sc_status>\d+\s)(?<s_action>\w+\s)(?<sc_bytes>\d+\s)(?<cs_bytes>\d+\s)(?<cs_method>((?i)POST|(?i)GET|(?i)UNKNOWN)\s)(?<cs_uri_scheme>((http\s)|([\-\s0\/\b]+))[a-zA-Z0-9\-\+\_]+.[a-zA-Z0-9\-\+\=\_]+.[a-zA-Z0-9\-\*\+\_]*[\.a-zA-Z0-9]*\s)
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago