Unkown Error with Parse Regex using ?! (negative look-arounds)

Comments

2 comments

  • Avatar
    Andrew Davidson
    To clarify, I am basically trying to parse the datetime and the message info from each log statement using the regex. When I run it, it usually dies after 15 seconds and says "Unknown Error (2)". I tried testing this with the first half of the regex, which parsed only the datetime, and at first it didn't work, but then I removed a set of redundant parentheses and it started working. That leads me to believe that the issue is with the ?!, which matches up until the next datetime that appears, if it exists, or until the end of the file.
    0
    Comment actions Permalink
  • Avatar
    Andrew Davidson
    Also, I did test this on regex101 and it seemed to work as expected.
    0
    Comment actions Permalink

Please sign in to leave a comment.