I have problem, can help me?
I have text and I want to replace it from ” to “.
<span>new var[128]; format(var, sizeof(var), "something %s %f", "Stuneris", 1589.0587); SendClientMessage(playerid, 0xFFFFFFFF, var);</span>
And I want "something %s %f" and "Stuneris" replace to <span class="numb">"something %s %f"</span> and <span class="numb">"Stuneris"</span>
And other problem is to replace HEX codes from 0xFFFFFFFF to <span class="numb">0xFFFFFFFF</span>.
What I need to do?
Replacing the HEX codes is easy:
Replacing the strings within quotes is a bit more tricky. The main issue is to inlcude
"something %s %f", but exclude", "(which separates the quoted strings, but will also look like a quoted string). If you can be sure there will never be a comma in any of the strings, you’d use:If you must allow for a comma, this will exclude all strings that start with a comma: