Hi I need to write regular expression that will capitalize the first letter of each word in the string. Word should be string with length that is greater or equal to 3 letters exclude the words 'and' and 'the'. I tried: $string = lc($string); $string =~ s/\b(\w{3,}[(^the|^and)])\b/ucfirst($1)/ge; but it not working so well. Any ideas? Shlomit.
- Regular expression to capitalize first letter of words in... Shlomit Afgin
- Re: Regular expression to capitalize first letter of... John Delacour
- Re: Regular expression to capitalize first letter of... marcos rebelo
- Regular expression to capitalize first letter of wor... Shlomit Afgin
- Re: Regular expression to capitalize first lette... John W. Krahn
- Re: Regular expression to capitalize first lette... Ramprasad Prasad
- Re: Regular expression to capitalize first l... Shlomi Fish
- Re: Regular expression to capitalize first lette... C.DeRykus
- Re: Regular expression to capitalize first lette... Rob Dixon