-2
如何使用正則表達式提取「text:」之後的單詞?輸入是這樣的:如何使用javascript查找匹配文本
some string some string (text:the_word_i_want_to_get some string) some string
some string some string (text:next_word_i_want_to_get some string) some string
和輸出應該是:
["the_word_i_want_to_get", "next_word_i_want_to_get"]
你能解釋一下這個好一點嗎? – Purag
@David:我試着更清楚地重寫你的問題;新版本還在說你想要什麼? –