N
nntp
s/\s(\w)//g;
how to inclue the fist letter in too?
I want to make
abc xyz to Abc Xyz
how to inclue the fist letter in too?
I want to make
abc xyz to Abc Xyz
perldoc -f ucfirstnntp said:s/\s(\w)//g;
how to inclue the fist letter in too?
I want to make
abc xyz to Abc Xyz
Jim said:perldoc -f ucfirst
this is elminating the space and word character. That doesn't at allnntp said:s/\s(\w)//g;
\s is searching for a space. You just want to find the first characterhow to inclue the fist letter in too?
I want to make
abc xyz to Abc Xyz
Quoth Paul Lalli said:s/(^|\s)(\w)/$1\u$2/g;
l said:Not sure on exactly what you are asking for. Below will capitalize the
first letter of every word in $a.
join ' ', ( map {ucfirst $_ } split /\W/, $a );
Paul Lalli said:Have you yourself read that documentation? It doesn't do what the OP
asked for.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.