Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

regex  - check string

Posted on 2013-05-21
3
Medium Priority
?
325 Views
Last Modified: 2013-05-21
I need a regex with this pathern.
The first two character has to be letters, and the rest (next 4) needs to be numberic number. Max len is 6.

sample

AB0001
DE1111
0
Comment
Question by:VBdotnet2005
3 Comments
 
LVL 22

Accepted Solution

by:
Matt V earned 1000 total points
ID: 39185627
How about

[a-zA-z]{2}[0-9]{4}
0
 
LVL 4

Assisted Solution

by:bepsoccer1
bepsoccer1 earned 1000 total points
ID: 39185640
[A-Z]{2}\d{4} should work for you.
0
 

Author Closing Comment

by:VBdotnet2005
ID: 39185674
thank you
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question