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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:55:47+00:00 2026-05-26T13:55:47+00:00

i am having a problem creating a regular expression that will validate if the

  • 0

i am having a problem creating a regular expression that will validate if the textbox has a three letters in the beginning and three numbers at the end e.g. AAA999 all 6 are required for this to be valid.

so far i have tried [A-Z][A-Z][A-Z][0-9][0-9][0-9] and [A-Z][A-Z][A-Z]\d{3}

can someone please tell me what i am doing wrong?

  • 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-26T13:55:48+00:00Added an answer on May 26, 2026 at 1:55 pm

    Add beginning and end anchors if you want the textbox to contain only 3 letters and 3 digits.

    ^[A-Z]{3}\d{3}$
    

    Since you have C# tags, this is how code will look like in C#

    Regex regexObj = new Regex(@"^[A-Z]{3}\d{3}$", RegexOptions.Multiline);
    foundMatch = regexObj.IsMatch(subjectString);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problems creating a regular expression which will fix a valid string. The
I'm having some issues with a regular expression I'm creating. I need a regex
Having some problems with creating regular expression with subpatterns on php. Need some help.
I've been having a problem creating a checklist in the style of the TouchCells
I am having a problem with creating a navigation controller after on the other
Having a bit of a problem creating an instance of an object. Bear in
Iam having problem creating postgresql function in plperl CREATE OR REPLACE FUNCTION zm_json (TEXT,
I'm having a problem creating a C# P/invoke wrapper around a third party C
I am having a problem creating a directory with specific permissions. //Make sure Tools
I'm having a problem with creating 24/7 video player for my application on WPF

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.