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 723757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:08:41+00:00 2026-05-14T06:08:41+00:00

is it possible to get the last value of an string, that looks like

  • 0

is it possible to get the last value of an string, that looks like this for example:

tm="1610612741|Bulls|Chicago|CHI"

and save it as a variable?

Something like that:

var tm = $(this).find(‘htm’).attr(‘tm’);

I only need the “CHI” string.
I tried everything, but what i found doesnt work. I get the string and the var from an xml file.
Also is it possible to parse the xml from a “live” version, like http://www.exampledomain.com/test.xml?

Appreciate your help!

Nicole

  • 1 1 Answer
  • 1 View
  • 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-14T06:08:41+00:00Added an answer on May 14, 2026 at 6:08 am
    var tm = '1610612741|Bulls|Chicago|CHI';
    var arr = tm.split('|');
    var lastPart = arr[arr.length - 1];
    
    alert(lastPart); // CHI
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question comes after solving my last question , I'd like to get some
Possible Duplicate: Extracting the last segment on an URI I want to get the
Possible Duplicate: Get file name from URI string in C# How to extract file
Possible Duplicate: Get a list of dates between two dates This is my sql:
This seems like a newbish question, but the last time I worked with Java,
I have field type string that can get two type of values on it:
Is it possible to get the object property name as a string person =
Hi How can i get last three values of list.i tried this stringAry.get(stringAry.size()-1); But
Summary: Can i get registry creation, modification, and last write times like i can
I'm using YQL to get a list of feeds, like this: SELECT title, link,

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.