G
GCOINC
Guest
Where is this functionality in this language.
Example:
Sooooo...... :sign0163:
Example:
B4X:
$str = "{abc|123|zzz} in some {place|house}"
preg_match("/{[^{}]+?}/", $str, $match)
$attack = explode("|", $match[0]);
$new_str = preg_replace("/[{}]/", "", $attack[rand(0,(count($attack)-1))]);
$str = str_replace($match[0], $new_str, $str);
var_dump($str);
Sooooo...... :sign0163: