fork(2) download
  1. import java.util.regex.*;
  2.  
  3. class uni {
  4. public static void main(String[] args) {
  5. Pattern pattern = Pattern.compile("([\"'])((?:(?=(\\\\?))\\3.)*?)\\1");
  6. Matcher matcher = pattern.matcher(" HYPERLINK \"hyperlink_funda.docx\" \\l \"Sales\" ");
  7.  
  8. while (matcher.find())
  9. System.out.println(matcher.group(2));
  10. }
  11. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
hyperlink_funda.docx
Sales