C#에서이 정규식 추출기 코드를 발견했습니다. 누군가가 어떻게 작동하는지 말할 수 있습니까? 어떻게 Java로 동등 물을 작성합니까?C# regex 코드를 Java로 변환
// extract songtitle from metadata header.
// Trim was needed, because some stations don't trim the songtitle
fileName =
Regex.Match(metadataHeader,
"(StreamTitle=')(.*)(';StreamUrl)").Groups[2].Value.Trim();