- 论坛徽章:
- 0
|
在一个文件中有三行句子. 有两个句子中有[RO],想把有[RO]的这两句子捕捉提取出来,请问怎么做。是不是要用array。我刚刚学perl, 希望各位大神帮忙。多谢大家了!
$_ = "We live in the same world, [RO] we share the same air and soil. However, in the different countries they have different cultures that other people are familiar with that. He changes the mind because Toula’s mother insists, [RO] she gives Gus some idea and let the Gus think that the decision is made by himself. "
输出:
We live in the same world, [RO] we share the same air and soil.
He changes the mind because Toula’s mother insists, [RO] she gives Gus some idea and let the Gus think that the decision is made by himself.
|
|