PHP Classes

Strange chars in the regexp

Recommend this page to a friend!

      PHP Email validation  >  PHP Email validation package blog  >  How to Correct Email ...  >  All threads  >  Strange chars in the regexp  >  (Un) Subscribe thread alerts  
Subject:Strange chars in the regexp
Summary:The regexp provided in the package has a non displayable char
Messages:4
Author:tobozo
Date:2009-01-07 14:31:35
Update:2009-01-12 16:33:46
 

  1. Strange chars in the regexp   Reply   Report abuse  
Picture of tobozo tobozo - 2009-01-07 14:31:35
Ola Manuel,

The email_validation.php file was saved as ISO and has a strange character in the $email_regular_expression value that I cannot display (maybe an UTF8 char?), it shows as a square sign in my text editor and in my browser so I cannot paste it here.

be well

tobozo

  2. Re: Strange chars in the regexp   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-08 01:23:21 - In reply to message 1 from tobozo
That is character that is no allowed in e-mail addresses. It does not affect the purpose of the class. Do you have any problems using it?

  3. Re: Strange chars in the regexp   Reply   Report abuse  
Picture of tobozo tobozo - 2009-01-12 15:37:05 - In reply to message 2 from Manuel Lemos
Hello Manuel,

I have no problems using it if I leave the code as is.

However, personalizing the error messages responses (eg:tranlating) is impossible because it requires to edit the file, and saving it afterwards truncates the two special characters, making the regular expression unusable (BAD_REGXP).

be well

tobozo

  4. Re: Strange chars in the regexp   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-12 16:33:46 - In reply to message 3 from tobozo
I suppose that I can replace it by an escape sequence. Would it help?