Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Java 还很陌生,我正在尝试学习更高级的主题,例如 Regex。
Java 等同于以下 C# 代码:
foreach (Match m in Regex.Matches(input, output))) { ... }
我有点卡住了。:/
Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(input); while (matcher.find()) { String match = matcher.group(); ... }