scrubbicus Posted July 15, 2009 Share Posted July 15, 2009 So I just finished the custom short BB code that allows people to use <b> <i> <u> and such and now I'm trying to find a way so that when people type in links www.site.com site.com http://www.site.com either of those the script will grab it and add <a href=""> </a> tags around it. The script looks like it has something but it's not doing anything and it used preg_replace() I used str_replace for my BB code and I'm not sure which of the two I should be using for something like this. I don't know how to use preg_replace() all I see in most of those functions is a lot of non numerical-alphebetical characters. I'm guessing that's how it finds what to replace. Anyone have a custom script like this already or has a suggestion as to what functions I should use for this? Thanks. Link to comment https://forums.phpfreaks.com/topic/166098-custom-description-box-that-has-automatic-html/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.