i want to extract a part of the string. The string is just like this java is a 'programming' language. Now my need is do extract the text between ' ' .How can i achieve this any help would be appreciated.
what's the prob in it ,you can do like this ....if still you need some other way please specify in detail ...
Joined: May 29, 2008
My requirement is not that see example below you might understand.
String a=" 'porsches car' , 'ferrari,car', yamaha bike ,'sdsDs fare' , efre asfasf ";
How to split that string. I tried to split with split(",") but see at the word 'ferrari,car ' it is one word now how to do. Whwn i use split(",\\s?+") i get the out put some thing like this
But the word 'ferrari,car' is one word not different the user has given a comma but whenever the user gives like those type of words he will give in between ' '. So the user have given the word ferrari,car like this 'ferrari,car'. Now i am un able to split it.
Hope you got my problem.