Results 1 to 3 of 3

Disable special characters in username

This is a discussion on Disable special characters in username within the General Discussion forums, part of the vBSEO SEO Plugin category; Hello, i know that for disable special characters in username i should use a Regular Expression. I need a Regular ...

  1. #1
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    68
    Liked
    4 times

    Disable special characters in username

    Hello, i know that for disable special characters in username i should use a Regular Expression.

    I need a Regular Expression that allow all characters of an english/european keyboard (for example A-Z 0-9 and|!"£$%&/()[]{}~=?^'ìè+ùàò,.-é*§°ç;:_@#<>€ and spaces too) but not special characters like that αßу ♥, etc.

    What Regular Expression should i use to do that?
    Thanks in advance

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Hello Fabio ,

    You can use one of the following that suits your needs
    Code:
    ^[A-Z]+$ - Characters from A-Z only
    ^[A-Z ]+$ - Characters from A-Z including space
    ^[A-Z0-9 ]+$ - Alphanumeric characters including space
    ^((?!&#\d+;)[\x20-\x7E])+$ - ASCII characters from 32-127
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    68
    Liked
    4 times
    Code:
    ^((?!&#\d+;)[\x20-\x7E])+$
    That's good for me but i need to allow also ° § ç and accented letters like éèìòàù. How can i do?

Similar Threads

  1. Special characters in username causing a problem...
    By Sonnie in forum Troubleshooting
    Replies: 10
    Last Post: 12-07-2008, 07:48 PM
  2. Special characters
    By Ska in forum URL Rewrite Settings
    Replies: 0
    Last Post: 07-13-2008, 01:43 PM
  3. Bug with special characters
    By MoMan in forum Bug Reporting
    Replies: 2
    Last Post: 03-05-2007, 07:17 PM
  4. username, special characters, wrong link - Additional
    By Ghostsuit in forum Bug Reporting
    Replies: 12
    Last Post: 10-07-2005, 12:59 PM
  5. username, special characters, wrong link
    By MMAFan in forum Bug Reporting
    Replies: 3
    Last Post: 09-17-2005, 11:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •