acamso 55 Posted May 17, 2017 Report Share Posted May 17, 2017 1 Quote Link to post Share on other sites
JackCrow 4 Posted October 8, 2017 Report Share Posted October 8, 2017 Happen to have a script example? Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 8, 2017 Report Share Posted October 8, 2017 Happen to have a script example? Here is a Python example... set(#your string,"this is a string that needs first letter capitalized.","Global") alert($python result("","string = \'{#your string}\' string.capitalize()")) Regards,CD Quote Link to post Share on other sites
acamso 55 Posted October 26, 2017 Author Report Share Posted October 26, 2017 Happen to have a script example? comment("WITH WHITESPACE") alert($acamso capitalize first letter(" hellow", $true)) comment("WITHPOUT WHITESPACE") alert($acamso capitalize first letter(" hellow", $false)) divider define $acamso capitalize first letter(#text, #whitespace) { if($comparison(#whitespace,"=",$true)) { then { return("{$change text casing($find regular expression(#text,"^(\\s+|)\\w"),"Upper Case")}{$replace regular expression(#text,"^(\\s+|)\\w",$nothing)}") } else { return("{$change text casing($find regular expression($replace regular expression(#text,"^\\s+",$nothing),"^\\w"),"Upper Case")}{$replace regular expression(#text,"^(\\s+|)\\w",$nothing)}") } } } 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.