Skip to main content
Regular Expressions

Regular Expressions

By February 16, 2019January 14th, 2020No Comments

Regular expression for only alphabets and space


1
str.replace(/[^a-zA-Z ]/g, "");