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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:17:52+00:00 2026-05-23T21:17:52+00:00

I understand how to match it but I don’t know the criteria for example,

  • 0

I understand how to match it but I don’t know the criteria for example, Email matcher would use: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/ but I need to know what a steam id would use.

Demo Steam ID: STEAM_0:1:20206720

Could someone give me a criteria for STEAM IDs?

EDIT:
I’m using the regex expression provided by pimvdb, but it still replys that a steam id(STEAM_0:1:20206720) is incorrect.

My code is below:

function verifySteamID(){
    var elem = document.getElementById('item_name');
    var emailExp = /^STEAM_[0-5]:[01]:\d+$/;
    if(elem.value.match(emailExp)){
        document.getElementById("error").setAttribute("class", "hidden");
        return true;
    }else{
        document.getElementById("error").setAttribute("class", "unhidden");
        elem.focus();
        return false;
    }
    }

Which is called by:

<input type="submit" value="Donate" id="donatebtn" onclick="return verifySteamID()" />
  • 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-23T21:17:53+00:00Added an answer on May 23, 2026 at 9:17 pm

    According to http://developer.valvesoftware.com/wiki/SteamID#Format it might be something along the lines of:

    /^STEAM_[0-5]:[01]:\d+$/
    

    ^...$ is just so that the exact string must match.

    STEAM_ is the prefix.

    After the prefix there should be one number ranging from 0 to 5.

    Then a : followed by either a 0 or 1.

    Then another : followed by the account number.

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

Sidebar

Related Questions

I understand regular expressions reasonably well, but I don't get to make use of
In my code, I use a regexp I googled somewhere, but I don't understand
I am having following code but unable to understand as to why no match
SELECT * FROM mytable WHERE match(fieldname) against('spa') I don't understand why this query doesn't
I have multiple line string that I'd like to replace, but don't understand why
I don't understand, why does the following regular expression: ^*$ Match the string 127.0.0.1?
Please help me understand why this isn't working. I don't know if there is
So, probably a simple question with a simple answer, but I don't know what
I understand the IOC concept, which we can mix-and-match different classes using wiring. Every
I understand the principles but i have a hard time seeing where the practical

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.