huylinhn 0 Posted November 3, 2016 Report Share Posted November 3, 2016 (edited) Hello, I would really appreciate for your help, I need change uppercase with regex: {word 1|word 2|word 3}. {word 4 |word 5 |word 6} The regex should be:(?<={)\w|(?<=\|)\w But pls advise how to change all first letter to uppercase with regex? Thanks very much, Edited November 3, 2016 by huylinhn Quote Link to post Share on other sites
pash 504 Posted November 3, 2016 Report Share Posted November 3, 2016 try clear all data set(#Var1,"\{word 1|word 2|word 3\}. \{word 4 |word 5 |word 6\}","Global") add list to list(%Words,$find regular expression(#Var1,"[\\w ]+"),"Delete","Global") with each(%Words,#Var2) { if($comparison(#Var2,"!= Does not equal","")) { then { set(#Var1,$replace(#Var1,#Var2,$change text casing(#Var2,"Proper Case")),"Global") } else { } } } alert(#Var1) 1 Quote Link to post Share on other sites
huylinhn 0 Posted November 3, 2016 Author Report Share Posted November 3, 2016 My current version's v5.8.5, not upgrade yet so i dont have with each command , any other method instead? Thanks Quote Link to post Share on other sites
pash 504 Posted November 3, 2016 Report Share Posted November 3, 2016 My current version's v5.8.5, not upgrade yet so i dont have with each command , any other method instead? Thankschange to loop and next list Quote Link to post Share on other sites
huylinhn 0 Posted November 3, 2016 Author Report Share Posted November 3, 2016 More than perfect! Thanks Pad Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.