title: regex does not like out#
body: <p>I write the following code o remove all hashtag words from my text:</p>
  
  <pre><code>public static void main(String[] args) {
  
      System.out
              .println(removeHashtag("Got an infection in my eye. Pharmacist thinks something bitten me. This wouldn't have happened under Simeone. Wenger a#sarcasm #wengerin"));
  
  }
  
  public static String removeHashtag(String commentstr) {
      String arrWord[] = commentstr.split(" ");
      String sentenceWithoutHash = commentstr;
      System.out.println(sentenceWithoutHash);
      for (int i = 0; i &lt; arrWord.length; i++) {
          if (arrWord[i].contains("#")) {
              String regex = "\\s*\\" + arrWord[i] + "\\b\\s*";
              sentenceWithoutHash = sentenceWithoutHash.replaceAll(regex, "");
          }
      }
      return sentenceWithoutHash;
  }
  </code></pre>
  
  <p>But this code does not work wih this text </p>
  
  <pre><code>Got an infection in my eye. Pharmacist thinks something bitten me. This wouldn't have happened under Simeone. Wenger out#sarcasm #wengerin"
  </code></pre>
  
  <p>it seems that regex does not like out#</p>
  
  <p>Can anyone help?</p>