title: Performing Find+Replace on a specific region and for letters that can be part of any word
body: <p>I'm working on a contact manager project in Eclipse that contains addresses and phoneNumbers.
  The methods for adding one (in this case to a tree node) is nearly identical to the other except that the variables and methods say Phone instead of Address. For instance getPhoneIterator() becomes getAddressIterator().
  I'm looking for a way to just highlight the whole paragraph and change everywhere the letters "ADDRESS" appear together, to the letters "PHONE".</p>
  
  <p>Is there a way to do that?</p>
  
  <p>For illustration, here is my code;</p>
  
  <pre><code>// Checking if there are addresses, and 
  // then checking and adding them one by one to the tree.
  if (!currentContact.addressCollectionIsEmpty()){ //If there are addresses...
      addressMainNode = new DefaultMutableTreeNode("Addresses");
      Iterator&lt;Address&gt; addressItr = currentContact.getAddressIterator();
      while(addressItr.hasNext()){
          Address currentAddress = addressItr.next();
          addressSpecificNode = 
              new DefaultMutableTreeNode(currentAddress.toString());
          addressMainNode.add(addressSpecificNode);
      }
      contactNode.add(addressMainNode);
  }
  </code></pre>