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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:46:31+00:00 2026-06-01T15:46:31+00:00

Ok so this is likely a ridiculously stupid question but I can’t seem to

  • 0

Ok so this is likely a ridiculously stupid question but I can’t seem to find a workable answer so please forgive my ignorance if the answer is obvious. All I would like is a Regex which will match a hex value exactly 8 times. So I’ve tried something like this:

My Regex:

 [0-9a-fA-F]{8}

Sample Input:

 D651000000060D60FADF0DFCE080E020636263633534623231386339

Sample Failing Input (where my given regex matches when I don’t want it to):

 ........@%........$dc073bcc-6aa5

Yet for some reason this wont work for me. From what I understand the {8} should match the preceding regex 8 times…yet this doesn’t seem to work in either C# or notepad++.

Thanks in advance!

  • 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-01T15:46:32+00:00Added an answer on June 1, 2026 at 3:46 pm

    Your question is slightly confusing as to if you want 6 hex characters, 8 times:

    ([0-9a-fA-F]{6}){8}

    Or an 8 digit hex character:

    [0-9a-fA-F]{8} or [0-9a-fA-F]{4,8} if you dont want to require 8 characters.

    I would recommend testing on:

    http://gskinner.com/RegExr/

    If these don’t get it, can you post a sample of the values you’re trying to match (note that if you have these on multiple lines in notepad++ you also need to be looking for the newline characters)

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

Sidebar

Related Questions

This is likely a stupid question but I always find myself wondering which is
I think this is likely to be a generic .NET assembly loading question, but
,This question is likely subjective, but a lot of grid Javascript plugins have come
I know this is most-likely a simple question but when you restore a database
This is most likely a ridiculous question, but I'm intrigued by the thought so
This is likely a a novice question, but google surprisingly did not provide an
This likely applies to non MVC too. But, Is it possible to use the
This is likely by design for big teams with proper QA departments, but we
This is most likely not an easy one but here is the situation: I
This is more of a maths/general programming question, but I am programming with PHP

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.