Advertisement
enissay

Enissay

Nov 19th, 2014
208
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Loop through all regex matches
  2. // wrap each match with a prefix and suffix
  3. // concatenate each result them using a separator
  4.  
  5. while(m.find()) {
  6.     sb.append(
  7.     StringUtils.join( prefix.concat(m.group(1)).concat(suffix)," | ")
  8.     );
  9. }
Advertisement
RAW Paste Data Copied
Advertisement