Hi,
I am trying to create a function that will take all my code for a forum, and output it correctly. There is an if statement I have that is never being passed, and I need to know why:
$data:
]http://forums.devshed.com/newthread.php?action=newthread&forumid=5
condition:
eregi("(http(s://|://)|]http(s://|://))", $data);
OR
eregi("(http(s://|://)|\]http(s://|://))", $data);
output:
always false. The first condition is without the escape characters for the ], and the ] is at the beggining of the data, in case a UBB bold tag is added.
Theoretically, according to that second condition, with that data, it should be true.
Thanks!