Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 35877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:18:17+00:00 2026-05-10T14:18:17+00:00

I am consuming the Twitter API and want to convert all URLs to hyperlinks.

  • 0

I am consuming the Twitter API and want to convert all URLs to hyperlinks.

What is the most effective way you’ve come up with to do this?

from

string myString = 'This is my tweet check it out http://tinyurl.com/blah'; 

to

This is my tweet check it out <a href='http://tinyurl.com/blah'>http://tinyurl.com/>blah</a> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:18:18+00:00Added an answer on May 10, 2026 at 2:18 pm

    Regular expressions are probably your friend for this kind of task:

    Regex r = new Regex(@'(https?://[^\s]+)'); myString = r.Replace(myString, '<a href=\'$1\'>$1</a>'); 

    The regular expression for matching URLs might need a bit of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm consuming a webservice from my application in C# .net (2.0) that return values
im Consuming a Soap webservice and im calling a method , i want to
I am having problems consuming a WCF web service (PaySimple's v3.00 API) using php
I am consuming a web service from a third party site. I have the
My objective is to find the process that is consuming the most CPU and
What is the best way for consuming rss feeds ,which aren't pubsubhubbub enabled? I
I'm having a hard time consuming the S3 API on Windows phone 7, mainly
I've just added the Twitter script to my website, and cannot, despite inexpertly consulting
Developing websites are time-consuming. To improve productivity, I would code a prototype to show
I'm consuming a third party .NET WebService in my client application. For debugging purposes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.