Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Regular expression for chinese character

by John M. Dlugosz (Monsignor)
on May 19, 2011 at 13:59 UTC ( [id://905702]=note: print w/replies, xml ) Need Help??


in reply to Regular expression for chinese character

First, learn about the "regexp" feature. Perhaps start with perlretut. For example, /\d+/ will match a sequence of digits (0 through 9). Similarly, you can find a sequence of characters that are used in Asian languages, as opposed to ASCII or other Latin, Greek, etc. characters.

There are built-in classifications, including "Han", which another poster illustrated.

So, use a pattern that finds all occurrences of Han characters within your mixed text.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://905702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found