Code: Alles auswählen
String fields = "Personen|Darsteller|Kamera|Regie|Moderation|Musik|Autor|Drehbuch|Mit";
String patternStr = "(^|\n)("+fields+")(:|\t| )(.*?)\n(?:"+fields+"|\n\n|$)";
Pattern pattern = Pattern.compile(patternStr, Pattern.DOTALL);
Matcher matcher = pattern.matcher(input);
Code: Alles auswählen
..
Drehbuch:
Erich Kästner (als Berthold Bürger)
Regie:
Josef von Baky
..