such tasks or? Should I write a parser for the 2nd input, myself?
If you know what sort of patterns you might encounter, no. You just need regex and Java SE already has regex. No need for a library.
Обсуждают сегодня