@underbottom/

repeat4

PHP (Legacy)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.1256769556081172","path":"main.php","file":{"path":"main.php","content":{"asEncoding":{"base64":"PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CgokdGV4dD0i0YjQsNC70LDRiCDRiNC40LzQtdGAINGI0YvQvdCz0YvRgSDQutGD0YDQuNGI0Ysg0LrRg9GI0YvRgNC4LCDRgdCw0L3RjyDRhdGD0Lks0YHQvtGB0Lgs0LrQvtC+0YDQtNC40LDQu9GM0L3QviHQsiDRgtC10LrRgdGC0LUg0LXRgdGC0Ywg0YHQu9C+0LLQviDCq9C60L7QvtGA0LTQuNC90LDQu9GM0L3QvsK7INC40LvQuCDCq9GB0LTQtdGB0YzCuywgwqvQt9C00LXQu9Cw0LvCuywgwqvQt9C00LXQu9Cw0Y7CuywgwqvQt9C00LXQu9Cw0L3Cuz/QsiDRgtC10LrRgdGC0LUg0LXRgdGC0Ywg0YHQu9C+0LLQsCDQsCDQuNC70Lgg0L3QviDQsdC10Lcg0LfQsNC/0Y/RgtC+0Lkg0L/QtdGA0LXQtCDQvdC40LzQuC4iOwoKJHJlZ2V4cD0iLyhbXlxcc10pKFssOyE/Ol0pKFteXFxzXSkvdWkiOwokY2hhbmdlZFRleHQ9cHJlZ19yZXBsYWNlKCRyZWdleHAsIiQxJDIgJDMiLCR0ZXh0KTsKCiRyZWdleHA9Ii8o0Yh80LYp0YsvdWkiOwokY2hhbmdlZFRleHQ9cHJlZ19yZXBsYWNlKCRyZWdleHAsIiQx0LgiLCRjaGFuZ2VkVGV4dCk7CgokY2hhbmdlZFRleHQ9c3RyX3JlcGxhY2UoItC60L7QvtGA0LTQuNCw0LvRjNC90L4iLCLQutCw0YDQtNC40L3QsNC70YzQvdC+IiwkY2hhbmdlZFRleHQpOwokY2hhbmdlZFRleHQ9c3RyX3JlcGxhY2UoItC30LTQtdC7Iiwi0YHQtNC10LsiLCRjaGFuZ2VkVGV4dCk7CiRjaGFuZ2VkVGV4dD1zdHJfcmVwbGFjZSgi0YHQtNC10YHRjCIsItC30LTQtdGB0YwiLCRjaGFuZ2VkVGV4dCk7CgokcmVnZXhwPSIvKFteLNCwLdGPMC05YS16XSko0LB80L3QvlxzKS91aSI7CiRjaGFuZ2VkVGV4dD1wcmVnX3JlcGxhY2UoJHJlZ2V4cCwiJDEsICQyICIsJGNoYW5nZWRUZXh0KTsKCiRyZWdleHA9Ii9cXHNbLF1cXHMvdSI7CiRjaGFuZ2VkVGV4dD1wcmVnX3JlcGxhY2UoJHJlZ2V4cCwiLCAiLCRjaGFuZ2VkVGV4dCk7CgplY2hvICRjaGFuZ2VkVGV4dDsKCj8+"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

error_reporting(-1);

$text="шалаш шимер шынгыс куришы кушыри, саня хуй,соси,коордиально!в тексте есть слово «координально» или «сдесь», «зделал», «зделаю», «зделан»?в тексте есть слова а или но без запятой перед ними.";

$regexp="/([^\\s])([,;!?:])([^\\s])/ui";
$changedText=preg_replace($regexp,"$1$2 $3",$text);

$regexp="/(ш|ж)ы/ui";
$changedText=preg_replace($regexp,"$1и",$changedText);

$changedText=str_replace("коордиально","кардинально",$changedText);
$changedText=str_replace("здел","сдел",$changedText);
$changedText=str_replace("сдесь","здесь",$changedText);

$regexp="/([^,а-я0-9a-z])(а|но\s)/ui";
$changedText=preg_replace($regexp,"$1, $2 ",$changedText);

$regexp="/\\s[,]\\s/u";
$changedText=preg_replace($regexp,", ",$changedText);

echo $changedText;

?>
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7