Currently, I am using /^[a-zA-Z.+-. ']+$/ regex to validate incoming strings.
When the incoming string is empty or only contains whitespace, I would like the code to throw an error.
How can I check for empty string using regex? I found some solutions but none are helpful.
if(string.match(/^\s?=*$/g).length > 0) // Not valid