in reply to Re: Reg Exp Need Al Alphabets + Numbers and "." - No underscore and special characters...
in thread Reg Exp Need Al Alphabets + Numbers and "." - No underscore and special characters...

That should be *, not +.
That should be \z, not $ (or else you'll allow a trailing \n).

  • Comment on Re^2: Reg Exp Need Al Alphabets + Numbers and "." - No underscore and special characters...
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: Reg Exp Need Al Alphabets + Numbers and "." - No underscore and special characters...
by SamCG (Hermit) on Feb 16, 2006 at 18:09 UTC
    \z -- okay, point taken
    * -- I was thinking he didn't want to match an empty string. I could have been wrong. . .
Re^3: Reg Exp Need Al Alphabets + Numbers and "." - No underscore and special characters...
by dani_cv_perl (Initiate) on Feb 16, 2006 at 16:57 UTC
    Thanks a lot...that works... Thanks every one for the help.. Dan.