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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:40:30+00:00 2026-06-06T16:40:30+00:00

I have a string like 1264$LP@$JOHN TAYLOR VS NJ Traffic$LP@$0$LP@$ . I want to

  • 0

I have a string like 1264$LP@$JOHN TAYLOR VS NJ Traffic$LP@$0$LP@$. I want to split this string with $LP@$ as a delimiter but this contains L (in TAYLOR) so while it should return

1264
JOHN TAYLOR VS NJ Traffic
0

it is giving like

1264
JOHN TAY
OR VS NJ Traffic
0

Could anybody help me? Thanks in advance.

  • 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-06T16:40:31+00:00Added an answer on June 6, 2026 at 4:40 pm

    The $ symbol is special character in regular expression. You need to escape it using ‘\’.

    String input = "1264$LP@$JOHN TAYLOR VS NJ Traffic$LP@$0$LP@$";
    String []pieces = input.split("\\$LP\\@\\$");
    
    for(int i=0;i < pieces.length;i++)
      System.out.println(pieces[i]);
    

    Output is
    1264
    JOHN TAYLOR VS NJ Traffic
    0

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

Sidebar

Related Questions

I have string looking like this: 'Toy Story..(II) (1995)' I want to split the
I have string like this 0 0.014E5 and I need it split into a
I have String like this: LODIXAL COMP 15 How can i split it to
Here i have this type of String and i want to split this string
I have a string like this field1=1 field2=2 field3=abc I want to ouput this
I have string like this This is ~test content ~ok ~fine. I want to
I have a string like this HelloWorldMyNameIsCarl and I want it to become something
I have string like: This.is.a.great.place.too.work. (or) This/is/a/great/place/too/work/ I want to see if this string
suppose I have string like this str1ng for test now i want to check
I have string like this (length>10)&(length<100) And i want this (,length,>,10,),&,(,length,<,100,) Is it possible

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.