regex expression for only letters and apostrophe code example Example: only letters regex /^[a-zA-Z]+$/g