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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:22:07+00:00 2026-06-07T23:22:07+00:00

Using Titanium IDE, in JavaScript. I think this is going to have to happen

  • 0

Using Titanium IDE, in JavaScript. I think this is going to have to happen using Regex, as well.

So, I’m trying to take something like
5-6-7
and split it up so that, for example,
I take the first number (in this case, 5), and then bring that into a variable to use later on. This would be the same for all the numbers, so that I end up with something like var one = 5; var two = 6; var three = 7;

That way, I’d be able to take specific digits and use their values instead of taking it as a whole.

I’ve been working on this for about two hours now, but since my understanding of Regex or other similar text formatting) is pretty bad at this point (learning!), I could use the extra help. Thanks!

  • 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-06-07T23:22:09+00:00Added an answer on June 7, 2026 at 11:22 pm

    I’m pretty sure you can access the data like this:

    var list = "1-6-7-123-123-3-21-3",
        items = list.split('-');
    
    console.log(items[1]); // logs "6"
    console.log(items[0]); // logs "1"
    console.log(items[3]); // logs "123"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting this in the JavaScript language using the Titanium IDE. What I'm
I am writing my app in JavaScript using Appcelerator's Titanium IDE. I've been working
I'm currently using JavaScript (CommonJS) in Titanium Studio and have a question about prototyping.
Am looking into developing an iPhone native app using Titanium Developer Since this is
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application
I have a JSON that contains the following: {p1:{debris:{titanium:0,silicum:0}},p2:{debris:{titanium:0,silicum:0}}... I declare the data using
I have been trying to set up Titanium and Android for 3 days. Still
Hope this makes sense, I am using Titanium mobile to build an iPhone app.
Using Titanium Appcelerator SDK 1.7.1 for iOS 4.3 I have a TableViewRow and need
Using Titanium Appcelerator I am trying to dynamically create elements and add event listeners

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.