title: How can I remove a £ symbol from an array object and save it?
body: <p>I'm coding a basic chatbot for a University project. I'm up to a point where the user must set a budget by entering an amount. At the moment, the program is able to search for a number in the user's message and save it correctly. However, when a £ sign is prefixed to it, it can't save as an integer due to having the pound sign in the message.</p>
  
  <p>This is my code:</p>
  
  <pre><code>//Scan the user message for a budget amount and save it.
      for (int budgetcount = 0; budgetcount &lt; words.length; budgetcount++) 
      {
          if (words[budgetcount].matches(".*\\d+.*"))
          {
              if (words[budgetcount].matches("\\u00A3."))
              {
                  words[budgetcount].replace("\u00A3", "");
                  System.out.println("Tried to replace a pound sign");
                  ResponsesDAO.budget = Integer.parseInt(words[budgetcount]);
              }
              else
              {
                  System.out.println("Can't find a pound sign here.");
              }
          }
  </code></pre>
  
  <p>I have previously tried .contains(), and other ways of indicating that it is a pound sign that I want to remove but I still get the "Can't find a pound sign here." print out.</p>
  
  <p>If anybody can offer advice or correct my code I would appreciate it greatly.</p>
  
  <p>Thanks in advance!</p>