Space proplem

2005-10-14 Thread Martha kavishe
Hi There; i have this problem of space in my program. The program requires a user to send in Either GU1 or TR1. When they send GU1 or TR1 it accepts it and that is fine. But My concern is; if they send GU 1 or TR 1(Leaving spaces before the number) then the program doesn't accept. It goes

Re: Space proplem

2005-10-14 Thread pan
Hi Martha, Although I do not understand exactly what it is that you want, the following could help ... #1# $msg =~ s/\/'/igx; #2# if (($msg=~ /gu1/i) ($msg !~ /gu1[0123456789]+/i)) First remove line #1#. I guess you did an attempt to remove quotes here, that weren't even there (you can see if