Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7892557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:54:03+00:00 2026-06-03T06:54:03+00:00

I have a log file which have logs very similar to Apache logs Here

  • 0

I have a log file which have logs very similar to Apache logs

Here is a sample log line

41.13.0.155 - - [03/May/2012:00:00:08 -0700] "GET /gameState?type=udid&udid=A100001837E58D4&game=TapFish HTTP/1.1" 200 38812 - "Dalvik/1.4.0 (Linux; U; Android 2.3.5; GT-B5510 Build/GINGERBREAD)"

I am able to separate this string from log line "GET /gameState?type=udid&udid=A100001837E58D4&game=TapFish HTTP/1.1"

I want to iterate all the lines to grab all the log line which fulfil following condition
Log line should have "GET /gameState?type=[[anything]]" but [[anything]] should not be 'neighbor'

Please suggest some regular expression which can match the string on above conditions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:54:04+00:00Added an answer on June 3, 2026 at 6:54 am

    I’m not sure I understood all of your constraints, but this should work:

    .+GET /gameState(?!.*type=neighbor\b).*
    

    You’re basically not matching if it spots type=neighbor anywhere after gameState, and only if neighbor is at word boundary (type=neighborhood is ok).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple log file which is very messy and I need it
I am working with a log file and I have a method which is
I have a formatted string from a log file, which looks like: >>> a=test
Here is my custom logger class, which helps me create logs file in my
I have a log file which needs to be properly formatted into a readable
I have my log file working, but I get extraneous info on each line
I have created a small program which logs text data to a file on
I have code which logs method calls. So that it is able to log
I have a c++ application which logs to some file using log4cxx (RollingFile appender).
I'm using bash. Suppose I have a log file directory /var/myprogram/logs/ . Under this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.