Skip to content Skip to sidebar Skip to footer
Showing posts with the label Regex

How To Check If Firstname's And Lastname's First Characters Are Uppercase?

I have an input filed where users will enter their first and last name. For example: (John Smith) H… Read more How To Check If Firstname's And Lastname's First Characters Are Uppercase?

Javascript Regex: Why Groups With One Syntax, And Not The Other

I just spent a couple of hours wondering why a regular expression that I thought I understood, wasn… Read more Javascript Regex: Why Groups With One Syntax, And Not The Other

Split String On Spaces Except For In Quotes, But Include Incomplete Quotes

I am trying to split a string in JS on spaces except when the space is in a quote. However, an in… Read more Split String On Spaces Except For In Quotes, But Include Incomplete Quotes

Limiting Input To Specified Regexp With Uppercase Chars In Ie

I'm trying to limit what our users will be able to type in inputs, using javascript/jquery. Pro… Read more Limiting Input To Specified Regexp With Uppercase Chars In Ie

Fastest Way To Test For A Minimum Number Of Lines Or Tokens

I have twice now found myself wanting to know whether a Javascript string has a minimum number of l… Read more Fastest Way To Test For A Minimum Number Of Lines Or Tokens

Why Does String.match Return Duplicate Item In Result Array?

Why does 'abc123'.match(/(\d{3})/) return [ '123', '123' ] instead of j… Read more Why Does String.match Return Duplicate Item In Result Array?