Dividing a string into substring in JAVA

Posted by Santhosha on Stack Overflow See other posts from Stack Overflow or by Santhosha
Published on 2010-05-28T06:51:09Z Indexed on 2010/05/28 7:52 UTC
Read the original article Hit count: 421

Filed under:
|

Hi,

As per my project I need to devide a string into two parts.

below is the example:

String searchFilter = "(first=sam*)(last=joy*)";

Where searchFilter is a string. I want to split above string to two parts

first=sam* and last=joy* so that i can again split this variables into first,sam*,last and joy* as per my requirement.

I dont have much hands on experience in java. Can anyone help me to achieve this one. It will be very helpfull.

Thanks in advance

© Stack Overflow or respective owner

Related posts about java

Related posts about substring