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

The Archive Base Latest Questions

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

Two quick questions: What would be a RegEx string for three letters and two

  • 0

Two quick questions:

  1. What would be a RegEx string for three letters and two numbers with space before and after them (i.e. ” LET 12 “)?
  2. Would you happen to know any good RegEx resources/tools?
  • 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-16T08:19:46+00:00Added an answer on May 16, 2026 at 8:19 am

    For a good resource, try this website and the program RegexBuddy. You may even be able to figure out the answer to your question yourself using these sites.

    To start you off you want something like this:

    /^[a-zA-Z]{3}\s+[0-9]{2}$/
    

    But the exact details depend on your requirements. It’s probably a better idea that you learn how to use regular expressions yourself and then write the regular expression instead of just copying the answers here. The small details make a big difference. Examples:

    • What is a “letter”? Just A-Z or also foreign letters? What about lower case?
    • What is a “number”? Just 0-9 or also foreign numerals? Only integers? Only positive integers? Can there be leading zeros?
    • Should there be a single space between the letters and numbers? Or any amount of any whitespace? Even none?
    • Do you want to search for this string in a larger text? Or match a line exactly?
    • etc..

    The answers to these questions will change the regular expression. It would be much faster for you in the long run to learn how to create the regular expression than to completely specify your requirements and wait for other people to reply.

    I forgot to mention that there will be a space before and after. How do I include that?

    Again you need to consider the questions:

    • Do you mean just one space or any amount of spaces? Possibly not always a space but only sometimes?
    • Do you mean literally a space character or any whitespace characters?

    My guess is:

    /^\s+[a-zA-Z]{3}\s+[0-9]{2}\s+$/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if($err) $_SESSION['msg']['login-err'] = implode('<br />',$err); Three quick questions: Why use a two-dimensional array here?
Two quick questions if I may, is this how I should go about taking
I have two quick questions: When do two file descriptors point to the same
Quick method description: I have two tables, lets name them table ONE and table
----- PHP and mySQL ----- I have two quick questions need some advice. On
I have two quick button questions in VS. First, I want to create a
Two quick quesitons: Benefits of using EDMLs vs. EDMXs - when would you choose
So I have two (hopefully quick) questions. I think I've got the hang of
I have two quick, easy questions on C# in Visual Studio. First, is there
I have three quick questions I've seen conflicting answers to that hopefully someone can

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.