in reply to Re: Re: RegEx Problem
in thread RegEx Problem

Ah, I should be able to redeem myself on this one...

$str =~ s/-([a-z])/uc $1/ge;

/me crosses fingers

Update: Oh dang. Damn you, Kanji ;)

Replies are listed 'Best First'.
Re: Re: Re: Re: RegEx Problem
by Kanji (Parson) on May 29, 2002 at 01:28 UTC

    I prefer to save /e for more complex substitutions, as \u (\l's counterpart) will do the same job...

    s/-([a-z])/\u$1/g;

        --k.