Hey, I'm putting together some community software and I want people to be able to format their blogs but only via Forum style formatting.
like using
[ b ] for bold [ / b ]
which is easy cause i can just do an eregi_replace() with < b > and < / b >
BUT I'm really confused on how I can make links safe. How do I extract the THE_URL from like
[ u r l ] THE_URL [ / u r l ]
?
I've looked into sscanf and stuff and can't seem to do it or get rid of the [ / u r l]. I suck at regular expressions so if anyone could give me some help on how I could extract that out (and batch search/format/replace for it in a long post/string) , please let me know.
Thanks :glare: