Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Simple Regex for Alpha string

by jlongino (Parson)
on Nov 14, 2001 at 01:05 UTC ( [id://125145]=note: print w/replies, xml ) Need Help??


in reply to Re: Simple Regex for Alpha string
in thread Simple Regex for Alpha string

Thanks Masem. I don't expect to encounter HO ASCII but then you never know. How would one handle that situation? If this requires a too lengthy reply feel free to direct me to an appropriate doc or whatever. Maybe Japhy references something like this in his soon-to-be book?

--Jim

Replies are listed 'Best First'.
Re: Re: Re: Simple Regex for Alpha string
by wog (Curate) on Nov 14, 2001 at 02:40 UTC
    For handling non-ASCII characters you can do a use locale; (see perllocale) and use the POSIX character class "upper": /^[[:upper:]]{2}$/
      I was going to say the same thing about using a POSIX class, but aside from the perllocale issue. I think generally its better to use them when you can.

      Yves / DeMerphq
      --
      Have you registered your Name Space?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found