Subj : Question To : Jasen Betts From : David Drummond Date : Fri Sep 17 2004 06:38 pm G'day Jasen 16 Sep 04 08:12, Jasen Betts wrote to David Drummond: DD>> Can anyone suggest a simple one line that determines if a variable DD>> contains alpha/numeric data, or a straight numeric value? JB> some sort of regex ? JB> first you need to define "straight numeric" a byte value (unsigned short int?) ... 0:255. JB> does 2.2 qualify ? how about is 1e5 ? 0xdeadbeef ? 0800 ? 3-1/2 ? nope. I've been offered a regex - but couldn't get it to work. I cobbled up something else. Regards, David --- Msged/LNX TE 06 (pre) * Origin: Fighting for peace is like screwing for virginity. (3:640/305) .