Guest User

Pattern

a guest
Jun 12th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.97 KB | None | 0 0
  1. <!DOCTYPE html>
  2.     <head>
  3.         <meta charset="utf-8">
  4.     </head>
  5.     <body>
  6.         <form>
  7.             <label>Podaj nickname   <input type="text" name="nick" pattern="[A-Z{1}][a-z0-9]{4,15}"></label>
  8.                 <br><br>
  9.             <label>Podaj hasło  <input type="password" name="passwd" pattern="(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{6,15}"></label>
  10.                 <br><br>
  11.             <label>Podaj kod pocztowy   <input type="text" name="postalcode" pattern="[0-9]{2}[\-][0-9]{3}"></label>
  12.                 <br><br>
  13.             <label>Podaj dzisiejszą datę    <input type="text" name="date" pattern="(0[1-9]|1[0-9]|2[0-9]|3[01])[\.](0[1-9]|1[012])[\.][0-9]{4}"></label>
  14.                 <br><br>
  15.             <label>Podaj swój adres IPv4    <input type="text" name="ip" pattern="((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}"></label>
  16.                 <br><br>
  17.             <input type="submit">   <input type="reset">
  18.         </form>
  19.     </body>
  20. </html>
Add Comment
Please, Sign In to add comment