MarkusR Well-Known Member Licensed User Longtime User Mar 26, 2018 #1 hello, is there a way to replace the first char of a word into uppercase? i have "name1.name2" i need "Name1 Name2" User = User.Replace( "."," ") User = Regex.Replace( "\b[a-z]",User, "$0") ???
hello, is there a way to replace the first char of a word into uppercase? i have "name1.name2" i need "Name1 Name2" User = User.Replace( "."," ") User = Regex.Replace( "\b[a-z]",User, "$0") ???
BillMeyer Well-Known Member Licensed User Longtime User Mar 26, 2018 #2 Try this - might work https://www.b4x.com/android/forum/threads/proper-case-for-names.41189/#content Enjoy !! Upvote 0
Try this - might work https://www.b4x.com/android/forum/threads/proper-case-for-names.41189/#content Enjoy !!
MarkusR Well-Known Member Licensed User Longtime User Mar 26, 2018 #3 BillMeyer said: Try this - might work https://www.b4x.com/android/forum/threads/proper-case-for-names.41189/#content Enjoy !! Click to expand... thank you. me thought i can replace also with regular expressions that $0 get upper case in one row as workaround i have this creation but its not for realtime B4X: For c = 97 To 122 User = Regex.Replace( "\b" & Chr(c) ,User, Chr(c-32) ) Next in the end i wrote a new file with better names Last edited: Mar 26, 2018 Upvote 0
BillMeyer said: Try this - might work https://www.b4x.com/android/forum/threads/proper-case-for-names.41189/#content Enjoy !! Click to expand... thank you. me thought i can replace also with regular expressions that $0 get upper case in one row as workaround i have this creation but its not for realtime B4X: For c = 97 To 122 User = Regex.Replace( "\b" & Chr(c) ,User, Chr(c-32) ) Next in the end i wrote a new file with better names