develooper Front page | perl.beginners | Postings from January 2002

Re:Regexp and lower case

Thread Next
From:
Jorge Goncalvez
Date:
January 10, 2002 01:39
Subject:
Re:Regexp and lower case
Message ID:
200201100938.KAA24293@cabs40.col.bsf.alcatel.fr
Hi, I have this:
if (/hardware ethernet /) {	
			$_=(split/\{/)[1];	
			s/[^\d:A-F]//g;		# remove anything not 0..9,A..F 
			#print "$_\n";
			
		}
		
It works but I dont want to remove th eletter between a-f if it is in lower 
case.
How can I do to have the upper and th elower case.
Thanks	
		


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About