Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Closed] How to convert a log file to a regular expression.



  • 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"


  • Moderators

    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?



  • Sounds like you're asking "this question":/forums/viewthread/37850/ again? Please don't do that. Stick to a single topic for a single question.



  • Sry......



  • [quote author="Mittu" date="1391501476"]Sry......[/quote]

    I'll interpret that as "yes, it is the same question", and thus close this topic.


Log in to reply