Invalid escape in pattern HTML/Javascript - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input pattern

Description

Invalid escape in pattern HTML/Javascript

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w  w w.j av  a2s. c o m-->
 <body> 
  <form> 
   <input type="text" pattern="(?:\w:|\\)(\\[\w\s.()~!@#$%^&amp;=+';,{}[\]-]+)+\.exe"> 
   <input type="Submit"> 
  </form>  
 </body>
</html>

Related Tutorials