Convert possible?

Parazitas

Известный
Автор темы
19
8
Possible convert this c ++ code to cleo code?
Maybe Someone can convert this c++ code to cleo code?
This c++ code deleting all color codes and left only string.


#include <iostream>
#include <string>
#include <regex>
#include <iterator>

using namespace std;

int main ()
{
string s ("my text {66AA66} some other text {888FF888} blah {1} {zzzzzz} \ n");
regex e (R "(\ {[0-9a-fA-F] {6.8} \})");
cout << regex_replace (s, e, "");
}