I want to use regular expression to change some string to its standard, for example:
" tran dinh thang "
-> "Tran Dinh Thang"
It means, I must clear all needless spaces, and change some letters to uppercase.
Please, give me some ideas!
Thanks so much!
Regular expressions are useful for pattern matching, not to change the contents of a string.
<regex> is not a standard header
The stream library can be used to do what you are trying very easily