Ramprasad wrote:
> I have a str that contains the base64 encoded string of a mail. Now
> this string should not contain any characters with ascii values above
> 128. Can i write a regex to check this

Assuming you mean 'above 127' you can use the POSIX ASCII character
class:

    die "Invalid character in data" if $string =~ /[^[:ascii:]]/;

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to