fredvdv has asked for the wisdom of the Perl Monks concerning the following question:
Everything goes well until $s contains utf8 characters then all characters following an utf8 one is also upper case. Is there a way to make \b aware of utf8 characters ? Is there another regexp to make the same processing but without messing up strings containing utf8 ? Regards, Frederic.$s = "word1 word2 word3"; $s =~ s/\b([A-Za-z]+)\b/\u\L$1/g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp on utf8 string
by tradez (Pilgrim) on Sep 10, 2004 at 15:21 UTC | |
|
Re: regexp on utf8 string
by borisz (Canon) on Sep 10, 2004 at 15:23 UTC | |
|
Re: regexp on utf8 string
by davido (Cardinal) on Sep 11, 2004 at 05:02 UTC | |
by fredvdv (Novice) on Sep 12, 2004 at 16:31 UTC | |
|
Re: regexp on utf8 string
by trammell (Priest) on Sep 10, 2004 at 15:26 UTC |