Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

perl character detection

Posted on 2004-09-09
3
Medium Priority
?
238 Views
Last Modified: 2010-05-19
Hi All,

I have a string which has words which is a mixture of english and multibyte text.

Is there some perl function by which looking at a word, we can say whether the word is made of ONLY non-multibyte characters???

Regards,
Lakshmi
0
Comment
Question by:lakshminair
3 Comments
 
LVL 85

Accepted Solution

by:
ozo earned 400 total points
ID: 12024363
!/[^\x00-\xff]/
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question