jeudi 7 mai 2015

Java String pattern that takes only specific strings

Following is the bulk data I have to go through:

String s = ")(&^%$ HELLO $#)(&^%..$ this Is the text $KJHGFIUYTRMNBVkjh$I need$gfd987654";

I need the text enclosed within $ $ symbols.

i.e Output would be :

1.HELLO
2. this Is the text
3. I need

Can Anyone help me?

Aucun commentaire:

Enregistrer un commentaire