Re: [PHP] Regexp hyperlink

2004-04-19 Thread Martin Visser
Thanks alot! It's indeed an ingenious way of doing it! Martin Richard Harb schreef: A while ago I've been looking at some piece of code of the tikiwiki project to see how they did some of their magic... Basically they run through the whole text and if they found something that was translated

[PHP] Regexp hyperlink

2004-04-18 Thread Martin Visser
I can't figure out how to do this. I've four different methods for changing a piece of text into a hyperlink. the text: [link=www.hotmail.com]hotmail[/link] [link=http://www.hotmail.com]hotmail[/link] www.hotmail.com http://www.hotmail.com what it should become (offcourse in HTML it will

Re: [PHP] Regexp hyperlink

2004-04-18 Thread Richard Harb
A while ago I've been looking at some piece of code of the tikiwiki project to see how they did some of their magic... Basically they run through the whole text and if they found something that was translated they made a hash and replaced the actual text with it and stored the link in an assoc