Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Regular Information pattern
  2. Pattern pattern = Pattern.compile("\@{3}(\s* \w \s*)\@{3}");
  3.        
  4. "(^|[^@])@{3}s*[_A-Z]+s*@{3}($|[^@])"
  5.        
  6. (?:[^@]|^)@{3}(s*[A-Z_]+s*)@{3}(?!@)
  7.  
  8. // or with Java escaping
  9.  
  10. (?:[^@]|^)@{3}(\s*[A-Z_]+\s*)@{3}(?!@)
  11.        
  12. (?:[^@]|^)
  13.        
  14. (?!@)
  15.        
  16. [^@]?@{3}s*([A-Z_]*)s*@{3}[^@]