Using Regular Expression

Hello,
I am new to JS, i studied what is RegEx and i wan’t to implement it. problem is i don’t know how to use it or check it aganist any input text field etc. can anyone be helpful enough to show me a example for checking RegEx against a input field.?

clever