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

  • SEARCH
  • Home
  • 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 7688995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:03:40+00:00 2026-05-31T20:03:40+00:00

I already asked the same question over at dev.twitter.com , however, I didn’t get

  • 0

I already asked the same question over at dev.twitter.com, however, I didn’t get an answer there. So maybe someone here on SO ran into the same issue and has an answer.

In my application I count the length of the characters the user enters to compose a tweet. However, if the user enters an URL, this will be shortened automatically (by Twitter’s API) when posting the tweet. So I have to replace the length of the URL with the length of the resulting t.co URL in my character counter.

However, the problem is now, what is Twitter’s definition of an URL so that I know when you adapt my character counter and when not. For example http://www.verylongexampleurl.de gets shortened, while verylongexampleurl.de (without the www) doesn’t, but verylongexampleurl.com does get shortened again.

I couldn’t find any documentation, but maybe I missed it. All hints are appreciated.

  • 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. Editorial Team
    Editorial Team
    2026-05-31T20:03:44+00:00Added an answer on May 31, 2026 at 8:03 pm

    Quoting from dev.twitter.com:

    Need help parsing tweet text?

    Take a look on the Twitter text processing library we’re using for auto linking and extraction of usernames, lists & hashtags.

    Ruby: https://github.com/twitter/twitter-text-rb
    Java: https://github.com/twitter/twitter-text-java
    Javascript: https://github.com/twitter/twitter-text-js

    The actual specification (tests) can be found here: https://github.com/twitter/twitter-text-conformance/blob/master/autolink.yml

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

Sidebar

Related Questions

I already asked this question but I didn't get my answer. Btw I found
I'm asking the same question here that I've already asked on msdn forums http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/70f40a4c-8399-4629-9bfc-146524334daf
I am well aware that there is exactly the same question already asked, but
There is already a similar question but it didn't seem to ask about the
I already asked same question here after that i came up with this code
I apologize if the same question was asked already. I just couldn't find. Please
I have already asked the same question but in regards with MDI Application design.
I already asked similar question here, but I still get some errors, so I
I already asked this question at the JOS-.NET board but Joel is closing that
I already asked a similar question, PE Header requirements , but I'm not really

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.