Код: Выделить всё
myVar.replace(/\u00AD/g, '');
Код: Выделить всё
$output = preg_replace('/true/', '!0', $output);
$output = preg_replace('/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?
Подробнее здесь: [url]https://stackoverflow.com/questions/79094789/how-to-prevent-preg-replace-altering-specific-part-of-a-string[/url]
Мобильная версия