0

PHPではこれが機能します:

$string = 'Hallo <b> fett </b> und/so/was ';
echo preg_replace('/(?<!<)\//', ' / ', $string);

出力 : Hallo fett und / so / was

jqueryで取得しようとしています:

 my_text.instructions = my_text.instructions.replace(/(?<!<)\//g, ' / '); 

私にくれます

SyntaxError: 量指定子が無効です

助けてくれてありがとう。まで。

4

1 に答える 1