Hi there is a requirement to strip a string along backslash(/)
For example I have
String vret = "Comment Four/Y/34147/D_Z";
This has to be splitted into 4 string namely
Str sarr[]={comment,Y,34147,D_Z}
The string will be always in this format only like XXXXX/X/XXXXXX/XXX:
- the first part will be alphanumeric value,
- the second part is single character
- the third is always a number
- the fourth is any character
I am assuming there will be regex to do this kind of operations in java
What about
Oracle even has the documentation.