On Friday, August 22, 2003, at 05:06 PM, bis wrote:

Thanks Gabriel - your suggested code

s/(SCTN:\s*)(\w+)/$1\u$2\E/g;

is an improvement - it does capitalise the first
letter - but only of the first word after "SCTN: " so
i get something like

SCTN: This is a section name

What I need is

SCTN: This Is A Section Name

hope that makes sense! :)

Well, let's see if we can get a little closer:


s/(SCTN:\s*)(.+)$/join '', $1, map { ucfirst $_ } split /( )/, $2/ge;

See if that helps any.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to