Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7713735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:56:51+00:00 2026-06-01T01:56:51+00:00

How do you do the following format on this string String contact_informaton_monday Convert to:

  • 0

How do you do the following format on this string

String
contact_informaton_monday

Convert to:
ContactInformationMonday

Basically do the following things:

  1. Make the first character upper case (I don’t have a problem with
    that)
  2. Replace each _(next_letter) by removing the underscore and just
    upper casing the next letter.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:56:53+00:00Added an answer on June 1, 2026 at 1:56 am

    Something like this

    var str = "contact_informaton_monday";
    var sb = new StringBuilder();
    foreach(var s in str.Split("_"))
    {
        sb.Append(s.Substring(0, 1).toUpper());
        sb.Append(s.Substring(1));
    }
    str = sb.ToString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple regex question. I have a string on the following format: this is a
I have an input string in the following format: 12.34 When I call this
Given a string in the following format (the Posterous API returns posts in this
I am using split() to tokenize a String separated with * following this format:
i want to do like the following format: So this is what i did
I have a filename that has the following format: timestamp-username-1 This file is constantly
How can I format the following line to eliminate StyleCop warnings: this.BeginInvoke(this.updateHandler,new object[]{this.tmpbuf}); Now,
i have a string date in the following format Thu Jan 5 19:58:58 2012
I want to convert string Date into Timestamp in java. The following coding i
I have a string value in the following format. 23-SEP-10 10.48.53.0000 AM When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.