Here's an example in PHP, but it should work cross language:

http://snipplr.com/view/2371/regex-regular-expression-to-match-a-url/


On 12/26/2009 12:41 PM, Michael Steuer wrote:
Try regular expressions on the status text...



On Dec 26, 2009, at 9:25 AM, humbucker <oursystemfai...@gmail.com> wrote:

Hello,

When I perform a twitter search from a jquery file, I get something
like this :

{"results":[{
"profile_image_url":"http://a1.twimg.com/profile_images/304998018/
icon_128_normal.png",
"created_at":"Sat, 26 Dec 2009 13:05:18 +0000",
"from_user":"web2feed","to_user_id":null,
"text":"RT @rodrigocunha85: Algu\u00e9m ainda se lembra dos
transferidores e cat\u00e1logos da Letraset? http://twitpic.com/vb1xi
#design #tipografia",
"id":7060359872,"from_user_id":27624855,
"geo":null,"iso_language_code":"pt",
"source":"&lt;a href=&quot;http://twibots.com&quot;
rel=&quot;nofollow&quot;&gt;TwiBots&lt;/a&gt;"},

I would like to be able to retrieve the url written in the tweet text,
e.g (here we got a twitpic url)

How can this be achieved please ?

Many many thanks for your help.


Reply via email to