#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Luxembourg
    Posts
    89
    Rep Power
    14
    Hi

    I need to see if a variable contains only lowercase alphabetic characters or the underscore

    Can someone please remind me how to do this?

    Many Thanks
  2. #2
  3. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    if($var =~ /[^a-z_]/)
    {
    // invalid
    }

IMN logo majestic logo threadwatch logo seochat tools logo