regex at least one character

It wouldn't be code if it . How do I reference the input of an HTML