Capitalize first letters in words in the string with different separators using java 8 stream
问题 I need to capitalize first letter in every word in the string, BUT it's not so easy as it seems to be as the word is considered to be any sequence of letters, digits, "_" , "-", "`" while all other chars are considered to be separators, i.e. after them the next letter must be capitalized. Example what program should do: For input: "#he&llo wo!r^ld" Output should be: "#He&Llo Wo!R^Ld" There are questions that sound similar here, but there solutions really don't help. This one for example: