Advertisement

12.13.2006 at 11:02PM PST, ID: 22092954
[x]
Attachment Details

Regular Expression problem

Asked by sudhakar_koundinya in Java Programming Language

Dear All

I wanted to have proper regular expressing in splitting my string

My String format is "str1|str2|str3" as an example.

My issue is if I give String as "str1||", it is returning 1, but in my case it should be 3

I am using "\\|" as an expression


So please helkp me in building proper regular expression



Regards
Sudhakar ChavaliStart Free Trial
[+][-]12.13.2006 at 11:09PM PST, ID: 18137103

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.13.2006 at 11:18PM PST, ID: 18137124

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.13.2006 at 11:26PM PST, ID: 18137141

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.13.2006 at 11:33PM PST, ID: 18137153

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.14.2006 at 03:14AM PST, ID: 18137858

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.14.2006 at 03:52AM PST, ID: 18138023

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2006 at 11:45AM PST, ID: 18155317

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]12.23.2006 at 06:54PM PST, ID: 18193370

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Sign Up Now!
Solution Provided By: PashaMod
Participating Experts: 3
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32