Comments on: How to Validate First and Last Name with Regular Expression using JavaScript https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/ Web & Mobile App Development Company Sat, 15 Apr 2023 05:13:54 +0000 hourly 1 By: balouch yousif https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/comment-page-1/#comment-149613 Sun, 29 Aug 2021 20:06:58 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3877#comment-149613 please suggest for the regular expression for the capitalization of each word in the input tag

]]>
By: Meepa https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/comment-page-1/#comment-139109 Sun, 25 Apr 2021 23:40:18 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3877#comment-139109 Thanks Uwe!

“^[a-zA-Z]+( [a-zA-Z]+)+$” works in Java as well for names with multiple words!

]]>
By: Jason https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/comment-page-1/#comment-124554 Thu, 08 Oct 2020 18:43:33 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3877#comment-124554 Another variation:
^[ a-zA-Z\-\’]+$

Will match:
O’Mally-Brient von M’ar III

]]>
By: Uwe https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/comment-page-1/#comment-119143 Thu, 23 Jul 2020 12:07:32 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3877#comment-119143 The regular expression /^[a-zA-Z]+( [a-zA-Z]+)+$/ allows for names with more than 2 words, i.e. “Erwin van der Groot”.

]]>
By: kritika sharma https://www.codexworld.com/how-to/validate-first-last-name-with-regular-expression-using-javascript/comment-page-1/#comment-86682 Mon, 03 Jun 2019 06:09:12 +0000 https://www.codexworld.com/?post_type=how-to-guides&p=3877#comment-86682 like the code..it is worth for me

]]>