我已绘制了替换词的地图:
$map = array(
word1 => replacement1 ,
word2 blah => replacement 2 ,
//...
);
我需要替换措辞。 但是,只有在以下情况下才能替换:
- It is not in the middle of some other word ex. textword1 will not be replaced with replacement1 because it is part of another token.
- Separators must be saved, but words before/after them should be replaced.
我可以把扼杀与言辞分开,但是,如果将用几条标语绘制的数值(如