java - How to trim specific chars inside a string -


i have string example:

username: tester1tt8e677 password: b6a492e14c

i need out username , password only.

the password , user name dynamically changing.

what best way doing java, , how?

thanks.

do massive favour , started on regular expressions. take more time blindly copy-pasting answer, once grasp concept can solve huge number of problems it.

you might want check out this tutorial, java-specifiy , looks quite solid. or go ahead , google, find tons of information out there.

once again - please learn regular expressions. not regret it.


Comments