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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:15:47+00:00 2026-06-14T07:15:47+00:00

A programmer at my office made a bit of a retarded database, so I’m

  • 0

A programmer at my office made a bit of a retarded database, so I’m stuck with a problem.
I’ve got a String I need to split into 4 parts, so I can read the data from the indexes.

The string I’ve got is this:

aimer|4-28-2-2.mp3=12###

The array I’d like to get back is:

  1. aimer
  2. 4-28-2-2.mp3
  3. 12
  4. ###

The Java code I’m currently using:

String assignmentRaw = "aimer|4-28-2-2.mp3=12###";
String[] assignmentSplit = assignmentRaw.split("\\||=");

for(String assignment : assignmentSplit)
    Log.i(ElkeDagApplication.DEBUG_TAG, assignment);

And returns:

  1. aimer
  2. 4-28-2-2.mp3
  3. 12###
  • 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-14T07:15:48+00:00Added an answer on June 14, 2026 at 7:15 am

    If the requirement for the last split is: a digit on the left and # on the right you can do this

    String[] assignmentSplit = assignmentRaw.split("\\||=|(?<=\\d)(?=#)");
    

    (?<=\\d) is a lookbehind assertion that checks for a digit on the left

    (?=#) is a lookahead assertion that checks for a “#” on the right

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

Sidebar

Related Questions

A junior programmer in our office has an unfortunate (but understandable) habit of using
As programmer I need to filter, search and validate data every day. For all
A Programmer in my office has written an incredibly large application in Windows Forms.
I am a Java programmer and need to work on a Flex/ActionScript project right
New programmer here, I am trying to understand and break down this code below
A programmer on your team is great at maintaining the old legacy system. But
Scenario: Programmer creates a branch for project 'foo' called 'my_foo' at revision 5 Programmer
Lazy programmer alert. :) Cassandra stores column values as bytes ( Java example ).
Scala programmer should have known that this sort of writing : class Person{ var
I'm an experienced programmer and android user. I'm following a guide for creating the

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.