regex in Dreamweaver


/ Published in: Regular Expression
Save to your folder(s)

http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.html
-and-
http://www.webmasterworld.com/forum46/1288.htm


Copy this code and paste it in your HTML
  1. The regular expression you seek is: [^"]*
  2.  
  3. so if you want to change all these:
  4.  
  5. <a class="wildcat" href="lion.html">
  6. <a class="wildcat" href="tiger.html">
  7. <a class="wildcat" href="leopard.html">
  8.  
  9. to:
  10.  
  11. <a class="wildcat" href="bigcat.html">
  12.  
  13. you search for:
  14.  
  15. <a class="wildcat" href="[^"]*">
  16.  
  17. and replace with:
  18.  
  19. <a class="wildcat" href="bigcat.html">
  20.  
  21. (make sure you tick the match case & regular expressions + seclect 'source code')

URL: http://www.webmasterworld.com/forum46/1288.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.