I'm trying to make a BB Code script, setting the Bold, Italic, URL etc is easy enought but how do you make it scan for rogue links that aren't placed in a URL tag and same goes for email because I just can't get it to work.
Ragnarok 0 Junior Poster in Training
Recommended Answers
Jump to PostHey rob! :) Can you explain to me how that's used please?
Jump to PostI'm not exactly sure of the PHP code to do this, but the algorithm might be for a string X, search the string until you detect "http://" ... from that on, it is a link until you reach whitespace. For each letter that isn't part of the URL, copy it …
All 6 Replies
Roberdin 9 Supreme Evil Overlord Team Colleague
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
Ragnarok 0 Junior Poster in Training
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
Roberdin 9 Supreme Evil Overlord Team Colleague
Ragnarok 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.