正则表达式,选择两个单词之间的单词

Mys*_*Dev 7 regex

我对正则表达式很新,我需要一些帮助.我试着弄清楚自己,但没有运气!

我试图在2个字符串之间选择文本(最后一个字符串的字符)

即:

word word2 :
Run Code Online (Sandbox Code Playgroud)

我想在word和之间选择"word2":

谢谢!

Joh*_*Woo 10

另一种选择是使用这种模式

(?<=word\s).*(?=\s:)
Run Code Online (Sandbox Code Playgroud)

请参见Lookahead和Lookbehind Zero-Width Assertions