Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How can use Regular Expressions in HTML?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 816
    Comment on it

    We can use a Regular Expressions width the help of HTML 5. You can use this with "textarea" and "Input" tags.

    <form action="" method="post">  
        <label for="username">Create a Username: </label>  
        <input type="text"   
           name="username"   
           id="username"  
           placeholder="4 <> 10"  
           pattern="[A-Za-z]{4,10}"  
           autofocus  
           required>  
        <button type="submit">Go </button>  
    </form>  
    

    Youll be aware that this pattern: [A-Za-z]{4,10} accepts only upper and lowercase letters. This string must also have a minimum of four characters, and a maximum of ten.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: