Regex To Match A Username With No Consecutive Spaces July 02, 2024 Post a Comment I am struggling to make a javascript regex to satisfy the following: The first character has to be alphabetical ([a-zA-Z]) The rest can be any letters, any numbers, hyphen, dot,Solution 1: This should work for you:/^[a-z](?!.* {2})[ \w.-]{2,24}$/gmi CopyRegEx Demo Baca JugaOptimal Way To Extract A Url From Web Page Loaded Via Xmlhttprequest?How To Replace "\" With "\\" From A String Using Javascript?Mm/dd/yyyy Hh:mm:ss Am/pm Date Validation Regular Expression In Javascript Share Post a Comment for "Regex To Match A Username With No Consecutive Spaces"
Post a Comment for "Regex To Match A Username With No Consecutive Spaces"