title: can we check multiple patterns using regex in java?
body: <p>i want to check 2 patterns using regex.</p>
  
  <p>can i check those both patterns in the same time (like if(condition1 | condition2) condition).</p>
  
  <p>any idea?</p>