I am currently experiencing a problem with regex although it has everything it needs, is there a regex lenght limit? Any help would be appreciated
$possible_tags_in_regex = "/(<b>|<\/b>|<i>|<\/i>|<u>|<\/u>|<tt>|<\/tt>|<font size=[1-7]>|<font color=#[a-fA-F0-9]>|<\/font>)*/";
// Add possible tags between every character in a string
$regex = implode($possible_tags_in_regex, str_split($regex));
$regex = $possible_tags_in_regex.$regex.$possible_tags_in_regex;
// Format every regex every match with given tags
if (preg_match_all($regex, $input, $to_be_replaced)) {