title: Turning a regular expression into a dreamweaver command
body: <p>I have a regular expression which works in Dreamweaver's find and replace but when I create a dreamweaver command it doesn't work.</p>
  
  <p>Any suggestions?</p>
  
  <pre><code>function canAcceptCommand() {
  return true;
  }
  
  function commandButtons() {
  return new Array("Go!", "doIt()", "Cancel", "window.close()");
  }
  
  function doIt() {
  
  dreamweaver.setUpFindReplace({
      searchString: "([0-9]{1}[\.\s][\s\D]?[^&lt;]*?)(\£\d\.\d\d[^&lt;])",
      replaceString: "&lt;strong&gt;$1$2&lt;/strong&gt;",
      searchWhat: "document",
      searchSource: true,
      useRegularExpressions: true
  }); 
  dreamweaver.replaceAll();   
  
  window.close();
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>PS - Thanks to sniffer for helping with the regular expression</p>