title: regex multiple strings in one string
body: <p>I have a text file that I iterate over and want to check for multiple substrings in each line (1 substring will exist per line).</p>
  
  <p>my regex is the following</p>
  
  <p><code>String rE = "(AGG|TIP|IDV|DVY|IYR|LQD|HYG|EMB|ACWI|ACWX|EFA|SCZ|EEM|IWB|IWF|IWD|IWM|IWO|IWN|IWV|IVV|IVW|IVE|IJH|IJK|IJJ|MUB|IJR|IJS|IJT|SPY)"</code></p>
  
  <p>and a line of my text file looks like this:</p>
  
  <p><code>SPY,6696832,31080,140.7,400,140.69,140.69,6396960,299872</code></p>
  
  <p>yet when i do:</p>
  
  <pre><code>BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
  System.out.println("Starting");
  while ((retStr = in.readLine()) != null) {
      if(retStr.matches(tickers)){
           System.out.println(retStr);
      }
  }
  </code></pre>
  
  <p>I do not find my strings.</p>
  
  <p>The code compiles and runs perfectly. I iterate over the file, yet I never find my result.</p>
  
  <p>Could I please have some help on what I am doing wrong?</p>