我有这个问题:
输入文本:
this is my text text text and more text
this is my text myspace this is my text
this space is my text space this is my
this is my text this is my text
this space is my text space space myspace
假设我想搜索“空间”
,我想将其作为输出:
this is my text text text and more text
space
space space
this is my text this is my text
space space space space
同一行上的匹配项必须用空格分隔。
没有匹配的行必须保持原样。
所有其他搜索项相同。
今天下午我试图实现这一点,但没有成功。
谁能帮我?