我在C#中找到了這個正則表達式提取器代碼。 有人能告訴我這是如何工作的,以及如何在Java中編寫相應的代碼?將C#正則表達式代碼轉換爲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();