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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Medicare HIC Number (HICN)
Expression
^(00[1-9]|0[1-9][0-9]|[1-7][0-9][0-9]|7[0-7][0-2]|77[0-2])(\d{6})(A|B([1-9]?|[ADGHJKLNPQRTWY])|C([1-9]|[A-Z])|D([1-9]?|[ACDGHJKLMNPQRSTVWXYZ])|E([1-9]?|[ABCDFGHJKM])|F([1-8])|J([1-4])|K([1-9]|[ABCDEFGHJLM])|T([ABCDEFGHJKLMNPQRSTUVWXYZ2]?)|M|W([1-9]?|[BCFGJRT]))$
Description
This is the real regex for a non-railroad board HICN. All combinations are accounted for. This does not account for dashes as they are stripped out before I do the validation. This also only allows 001-772 as the first 3 numbers per spec. It does not take into consideration that 00 is not allowed for 4th and 5th digits and that 0000 is not allowed for last 4 digits.
Matches
123456789F1 123456789W
Non-Matches
1234567890 A000000 WCD000000 123-45-6789A
Author Rating: The rating for this expression. Derek
Title Test Details Password
Expression
^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d])(?=.*[-\]\\`~!@#$%^&*()_=+}{[|'";:><,.?/ ]).{8,50}$
Description
Min 8 Max 50 chars /r/n Min 1 upper Min 1 number Min 1 special char from the list (there is a space at the end of the list. basically every special char from a US keyboard layout) Be careful when copy and paste from here. The entities will probably get converted.
Matches
Sco0ter~Wheels ~as$wO0Ed1
Non-Matches
Sco0terWheels PassW0rd
Author Rating: Not yet rated. Derek
   Displaying page 1 of 1 pages; Items 1 to 2

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