Converting string from snake_case to CamelCase in Ruby
I am trying to convert a name from snake case to camel case. Are there any built-in methods? Eg: “app_user” to “AppUser” (I … Read more
I am trying to convert a name from snake case to camel case. Are there any built-in methods? Eg: “app_user” to “AppUser” (I … Read more
How do I get up to the first n characters of a string in Java without doing a size check first (inline is … Read more
I know that “string” in C# is a reference type. This is on MSDN. However, this code doesn’t work as it should then: … Read more
I want to split a string by ‘=’ charecter. But I want it to split on first instance only. How can I do … Read more
I need to generate a string with n characters in Python. Is there a one line answer to achieve this with the existing … Read more
What is the recommended way of formatting TimeSpan objects into a string with a custom format? 20 Answers 20
I have the following string: “,’first string’,’more’,’even more'” I want to transform this into an Array but obviously this is not valid due … Read more
I have this string array: string[] stringArray = { “text1”, “text2”, “text3”, “text4” }; string value = “text3”; I would like to determine … Read more
I need to store a double as a string. I know I can use printf if I wanted to display it, but I … Read more
Example: [12,23,987,43 What is the fastest, most efficient way to remove the “[“, using maybe a chop() but for the first character? 15 … Read more