从记事本 中的特定行获取数字



我有这样的行:

<action actionid="9717" script="other/yackal.lua" />

如何从" ActionID =" 9717"。

中获得数字

第二个相同但与:

uniqueid="9717"

3rd

<action fromaid="44850" toaid="44856" script="quests/reward.lua"/>

可以从中获得所有数字吗?我的意思是,44850,44851,44852,...,44856。它也应该搜索fromaid和求助,因为我与Fromid and Toid有行程,不应该采取任何行动。

感谢您的帮助!

尝试使用正则以后的数字在第二个单词之后和双引号之间提取数字。

喜欢(<action )[a-z](=")(*?)(")

我的Linux上没有记事本 :(

最新更新