Petr Vileta: > Dr.Ruud: >> Petr Vileta: >>> $data1 =~ s/[^\d,.]//sg; >> >> Prepare for the future: \d matches more than [0-9]. > > Huh? My O'Reilly book "Programming in Perl" say > \d digits, the same as [0-9] > > Is some new in Perl since year 1997? ;-)
Unicode, see `perldoc perlre`. U+0660 ARABIC-INDIC DIGIT ZERO U+0A66 GURMUKHI DIGIT ZERO U+1040 TIBETAN DIGIT ZERO U+1369 ETHIOPIC DIGIT ONE :) U+24EA CIRCLED DIGIT ZERO U+FF10 FULLWIDTH DIGIT ZERO U+104A0 OSMANYA DIGIT ZERO U+1D7CE MATHEMATICAL BOLD DIGIT ZERO Etc. etc. http://www.unicode.org/Public/UNIDATA/Scripts.txt (look for "digit zero") The Unicode Character Property Model: http://www.unicode.org/reports/tr23/index.html (2.2) -- Affijn, Ruud "Gewoon is een tijger." _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
