[Closed] How to convert a log file to a regular expression.
Locked
General and Desktop
-
I need some help with QRegExp.I need to convert the line that given below.Anyone help me. plz convert this line to regular expression.
46.33.247.139 - - [05/Jan/2014:16:03:32 -0800] "GET /logs/access_130930.log HTTP/1.0" 200 1251943 "http://cytoteconline.jw.lt/200mcg" "Opera/9.80 (Windows NT 6.2; WOW64) Presto/2.12.388 Version/12.11" "redlug.com"
-
You need to explain what you mean by "convert to regular expression". All QRegExp and QRegularExpression take is a string: and you have a string right there :P
I suppose you mean you want to parse that string with some kind of reg exp? Or maybe validate that the format is correct?