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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:10:41+00:00 2026-06-13T21:10:41+00:00

Not sure if this is even possible but I have been looking at using

  • 0

Not sure if this is even possible but I have been looking at using Regex to get an email address that is in Hex. Basically this is to build up some of my automated forensic tools but I am having problems on making a suitable Regex algorithm.

Regex for email: /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/

Hex values:

@ = 40
. = 2E
.com = 636f6d
_ = 5f
A/a = 41/61 [1]
Z/z = 5a/7a
- = 2d

This is what I have got at the moment (it only takes into account lower case and .com). But it doesn’t work! Have I messed something simple up?

"/^([61-7a]+)40([61-7a]+)23(636f6d)$/"

[1] I know email can only be lower case but I need to take uppercase into account too.

  • 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-13T21:10:43+00:00Added an answer on June 13, 2026 at 9:10 pm

    define classes

    @ = 40
    . = 2E
    com = 636f6d
    _ = 5f
    a-z = (4[1-9a-f]|5[0-9a])
    A-Z = (6[1-9a-f]|7[0-9a])
    - = 2d
    

    substitute into your regex

    /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/
    
    /^(((4[1-9a-f]|5[0-9a])|(6[1-9a-f]|7[0-9a])|[0-9]|5f|2E|2d)+)40(([0-9]|(4[1-9a-f]|5[0-9a])|(6[1-9a-f]|7[0-9a])|2E|2d)+)2E(((4[1-9a-f]|5[0-9a])|(6[1-9a-f]|7[0-9a])){2,6})$/
    

    breaks down to…

    /^
    (
        (
            (4[1-9a-f]|5[0-9a])     // a-z
            |(6[1-9a-f]|7[0-9a])    // A-Z
            |[0-9]                  // 0-9
            |5f                     // _
            |2E                     // .
            |2d                     // -
        )+ // 1 or more times
    ) 
    40
    (
        (
            [0-9]                   // 0-9
            |(4[1-9a-f]|5[0-9a])    // a-z
            |(6[1-9a-f]|7[0-9a])    // A-Z
            |2E                     // .
            |2d                     // -
        )+ // 1 or more times
    )
    2E                              // .
    (
        (
            (4[1-9a-f]|5[0-9a])     // a-z
            |(6[1-9a-f]|7[0-9a])    // A-Z
        ){2,6} // between 2 and 6 times
    )$/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure this is even possible but I know if it is, the
I'm not sure if this is even possible, but is there a way to
Ok, not sure if this is even possible, but I want to change the
Hello! I'm not even sure if this is possible, but hopefully it is in
I'm not sure if this is possible, but if I have a directory with
First of all I'm not sure this is even possible, however I need to
I'm not sure if this is even what you call it, but basically, I
I'm not even sure what this is called? But I'm trying to learn what
I am sure this question has been asked but I can't find anything that
I'm very new to threading and thus am not quite sure if this even

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.