On Apr 7, 2004, at 9:13 AM, SADAHIRO Tomoyuki wrote:



On Tue, 6 Apr 2004 18:05:32 -0400 gohaku <[EMAIL PROTECTED]> wrote:

Hi everyone,
I have some ( actually many ) records in a Database that  I want to
"clean"
Some of these records contain Unicode Text ( Mostly East-Asian )

I have tried matching for "\W+" and "\S+" but that is not what I am
looking for because I would like to keep "&" and "-"

Thanks in advance.
-gohaku

Hello. A solution may depend on which contamination may be mixed in your records.

If contamination is an unassigned code points which shall not be used,
\p{Assigned}+ may be useful.


SADAHIRO Tomoyuki



Not the best solution, but I decided to match for [A-Z] at the Beginning of the Record.
if($title =~ m /^[A-Z]/si)




Reply via email to