regex check if the letter is empty code example Example: regex to check non empty string /^(?!\s*$).+/