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 1094937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:02:45+00:00 2026-05-17T00:02:45+00:00

Is it possible to convert an all-uppercase string into a string where only the

  • 0

Is it possible to convert an all-uppercase string into a string where only the first letter of each word is in upper case using regular expressions?

THIS IS A SAMPLE STRING ---> This Is A Sample String

At first I thought this would be an easy task, but now I don’t even know how to start or even if it is possible.

  • 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-05-17T00:02:45+00:00Added an answer on May 17, 2026 at 12:02 am

    In Perl:

    $string =~ s/([\w']+)/\u\L$1/g;
    

    (taken from the Perl FAQ)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Convert a String In C++ To Upper Case Hi, I need a
Is it possible to take a string, and convert all the characters into their
How can I convert a string from a lowercase to uppercase with all possible
is there a way to convert all nodes' attributes into child Nodes using XSLT
Is there a way I can convert ALL characters, including regular ones, using PHP
How do you convert all text in Vim to lowercase? Is it even possible?
Possible Duplicate: Convert a number to the shortest possible character string while retaining uniqueness
Is it possible to convert a String to a type, which is definied by
Is it possible to convert HTML + CSS into HTML for a system that
Is it possible to convert facebook data (ex. user_pic) into a DisplayObject so 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.