Advertisement
enissay

Enissay

Nov 19th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement