Check Password Strength with JavaScript and Regular Expressions

Reading Time: 2 minutes I was doing some research on finding a good example of a Password Strength checker that uses JavaScript and Regular Expressions (Regex). In the application at my work, we do a post back to verify the password strength and it’s quite inconvenient for our users. What is Regex? A regular expression is a sequence of characters that define a search pattern. Usually, such patterns are used by string searching algorithms for find or find and

Check Email Address with JavaScript and Regular Expressions

Reading Time: < 1 minute A while ago I put up a Password Strength Checker using JavaScript and Regular Expressions. On that same note, you can also check the structure of an email address utilizing the same regular expression (regex) methodology. If your form element has the id=”emailaddress” and you add a form onSubmit=”return checkEmail();“, this is a Javascript function that you can utilize to return an alert if the email address has a valid structure or not: <script language="javascript">

Valid Email Address Length

Reading Time: < 1 minute I had to do some digging today to find it, but did you know what the valid length of an email address is? It’s actually broken into parts… Name@Domain.com. This is according to RFC2822. Name can be 1 to 64 characters. Domain can be 1 to 255 characters. Wow… that means that this could be a valid email address: loremaipsumadolorasitaametbaconsectetueraadipiscin gaelitanullamc@loremaipsumadolorasitaametbaconsect etueraadipiscingaelitcaSedaidametusautanisiavehicu laaluctuscaPellentesqueatinciduntbadiamaidacondimn tumarutrumbaturpisamassaaconsectetueraarcubaeuatin ciduntaliberoaaugueavestibulumaeratcaPhasellusatin ciduntaturpisaduis.com Try fitting that on a business card! Ironically, most