Sunday, 8 September 2013

Using regex to get subtring

Using regex to get subtring

With Java Regex, how can I manage to get a subtring for a String with
pattern like this:
data:image/png;base64,iVBO....{a very long string of characters and symbols}
Where I need to get image/png however, it could be image/jpg or image/xxxx

No comments:

Post a Comment