我需要编写一个函数,该函数将在字符串限制中找到[insert - l] some text [/insert]
并在每个单词中放入一个限制中指定的字符(例如 char l )我认为我需要在 [insert - l] [/insert] 之间找到所有拆分它排列并将一个字符放入随机位置的每个单词中,但我的knowlogde不足以编写它。请帮助我=\
例子:
Musgrave was [insert - l] selected as a scientist-astronaut [/insert] by NASA in August 1967.
功能后我必须得到:
Musgrave was sellected als a scilentist-astrlonaut by NASA in August 1967.