I don't really know much about regular expressions and I was over at Ying's tutorial on creating a scripting language. I'm trying to copy the UBB style doing text
but he uses "'s.
The code I'm using right now is
$text = ereg_replace('[url="([[:graph:]]+)"]', '<a href="\1">', $text);
$text = str_replace('[/url]', '</a>', $text);
I can't figure out how to make this code not use the quotes, so the syntax is like this:
text
Any help would be greatly appreciated..
-Justin