Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Closed] How to convert a log file to a regular expression.
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mittu
    wrote on last edited by
    #1

    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"

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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?

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mittu
          wrote on last edited by
          #4

          Sry......

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

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

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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved