Development JavaScript DHTML

/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 
ISBN: 067231763X
Publisher Sams CopyRight 2000
*/


Regular Expression Tester
   




   


Regular Expression Tester




  
    Search String:
    
  
  
    Replace String:
    
  
  
    Attributes:
    
  
  
    Pattern:
    
  



       value="Search for pattern"
       onClick="searchForPattern(searchString.value,
                                 pattern.value,
                                 REattributes.value,
                                 result)">
       value="Replace pattern"
       onClick="replacePattern(searchString.value,
                                 replaceString.value,
                                 pattern.value,
                                 REattributes.value,
                                 result)">
       value="Clear"
       onClick="clearFields(searchString,
                            replaceString,
                            pattern,
                            REattributes,
                            result)">




Result: