RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[S-s]( |-)?[1-9]{1}[0-9]{2}( |-)?[0-9]{2}$
Description
Swedish postcodes (as far as i know)
Matches
S-123 45 | s 123 45 | S123-45
Non-Matches
Se12345
Author Rating: Not yet rated. paul Snabilie
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: S-
Name: Andrei
Date: 5/3/2004 10:32:02 AM
Comment:
I'd use ^([S-s]( |-))?[1-9]{1}[0-9]{2}( |-)?[0-9]{2}$ to make the s optional.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials