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

  • SEARCH
  • Home
  • 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 197571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:51:52+00:00 2026-05-11T16:51:52+00:00

I need help with regular expression. I have very large collection of text files

  • 0

I need help with regular expression.

I have very large collection of text files with different contents. But every file contains one hexadecimal key. Every key has exactly 16 hexadecimal digits ("E4 34 F1 FB...") and always begins with "00" or "01". In some cases they have one separator character (":").

Here are some example keys:

00:C461F0538ECC84F1AF43DBBDC49E5DA3
00:F4F599D15353650F1566CFEB5CB891C1
011EC3991261BFD8D74BBCFE1E3108628C
003E05F7730347E43437F1FBCAB3A8B461
018FAE7FFB2DBB64F646F705525DEB25F8
00)339EDE5269DD018C2FD5338AD18C3A2F
00B8491FDF00C618A155350F47349E7B04

How to extract these keys from strings with a regular expression in .NET (VB.NET or C#)?

Here are a couple of strings for testing:

KAJSDF00ASLJKHFLAKJSDHFLAK01JSH00:C461F0538ECC84F1AF43DBBDC49E5DA3DFLKJAHSDFJAVHBEVBERJHVBQEJHRVBQJERBV
JKLABDVJ01KBQLKJFBVQLEJKRBVL00:F4F599D15353650F1566CFEB5CB891C1QERBVJHQEBRVJHQBERFVHBQERVJHBQEJH
RVBQJHERVBJHQBRVJHQEBRVJHWEBRV011EC3991261BFD8D74BBCFE1E3108628CWKBERVJHWERFGUQHERULIFHQW
EIFH2FPO00I134FWFQWHEF34HFQREW018FAE7FFB2DBB64F646F705525DEB25F8F2347YQ3EFQO84R93U48UY8RTU13
R1R0100910R14UYR891UYFR1UEF98U1FPH00)339EDE5269DD018C2FD5338AD18C3A2F138294FH190324FU134UF19834YF
  • 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-11T16:51:52+00:00Added an answer on May 11, 2026 at 4:51 pm
    0[01][\:\(\)]?([0-9A-F]){16}
    

    Don’t have a regex parser to test this but that should search for a

    • 0,
    • followed by a 0 or 1,
    • followed by the possible (but not compulsory) occurrence of a ‘:’, ‘(‘ or ‘)’
    • followed by 16 consecutive characters with possible values of (0123456789ABCDEF)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've spent some time, but still have to solution. I need regular expression that
I need help coming up with a regular expression to match if a string
I need help with a regular expression that will find matches in the strings
I need help with writing a regular expression in PHP. I am not friend
I have this regular expression to help me validate a form input. var nrExp
I am assuming I need a regular expression here? I have a zip code
I have a couple strings like: net_weight_(lbs) net_height_(inches) I need a regular expression that
Having some problems with creating regular expression with subpatterns on php. Need some help.
I really need some quick help to create a regular expression to extract a
I have a text-file container a number of lines, which I need to turn

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.