Code: Select all
$string = "John went all-in after he saw the flop (7s 8c 9d) and feels good about it.";The basic pattern would be something like:
Code: Select all
preg_replace('/7s/', 'Seven of Spades', $string);Moderator: General Moderators
Code: Select all
$string = "John went all-in after he saw the flop (7s 8c 9d) and feels good about it.";Code: Select all
preg_replace('/7s/', 'Seven of Spades', $string);