【发布时间】:2011-01-16 17:51:42
【问题描述】:
在 Java 中执行以下操作的最佳方法是什么。 我有两个输入字符串
this is a good example with 234 songs
this is %%type%% example with %%number%% songs
我需要从字符串中提取类型和数字。
在这种情况下,答案是 type="a good" and number="234"
谢谢
【问题讨论】:
-
我不明白你在做什么??您是否尝试提取“this is”和“example”之间的值?