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 6055573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:46+00:00 2026-05-23T08:16:46+00:00

Possible Duplicate: Searching using Regex in VIM or elsewhere I’m searching a huge ~600

  • 0

Possible Duplicate:
Searching using Regex in VIM or elsewhere

I’m searching a huge ~600 Mb file for a particular pattern which is 7 Hexadecimal values long. The Problem is

  1. the ‘pattern’ could be on the next line and
  2. there are several addressing lines.

I got rid of problem 1 by getting rid of all the carriage returns but I’m still faced with even if the values are on the next line I have no idea how to search past the address line. Below is an example:
0x000001A0: 36 5B 09 76 99 31 55 09 78 99 34 51 49 BF E0 03
0x000001B0: 28 0B 0A 03 0B E0 07 28 0B 0A 03 0B 49 58 09 35

For example: I want to be able to find the pattern 49 BF E0 03 28 0B 0A, Which goes across lines 1 and 2 above but I can’t just search for it regularly because of the 0x000001B0: at the beginning of the line Any suggestions or c++ code or excel ideas would be helpful. I’m using VIM at the moment to open this big file and using excel won’t open the entire thing.

  • 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-05-23T08:16:47+00:00Added an answer on May 23, 2026 at 8:16 am

    Python, just read in line, split, chuck the first part, concat the hex into a string, and search. Something like this would work:

    hex = ""
    for each line in lines:
        tmp = line.split() // split on whitespace
        hex += tmp[1:] // grab everything after address
    
    if hex.contains(pattern):
        # do something
    

    Or use a regex, but you get the basic idea.

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

Sidebar

Related Questions

Possible Duplicate: Searching a log file Where I can either enter a binary file
Possible Duplicate: Searching through list I need to write a function 'once' which, given
Possible Duplicate: What algorithm .Net use for searching a pattern in a string? I
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: How do I calculate relative time? I am searching for a custom
Possible Duplicate: jQuery Youtube URL Validation with regex YouTube url id Regex http://www.youtube.com/watch?v=SCS7SIeF30E http://www.youtube.com/watch?v=SCS7SIeF30E&feature=relmfu
Possible Duplicate: How can I remove external links from HTML using Perl? Alright, i'm
Possible Duplicate: reverse a string in Python I tried searching the python documentation for
Possible Duplicate: How to convert hex to a byte array? I'm searching for a

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.