my $test = "Rnott230602.txt"; $test =~ m/^(.{1})(.{4})(.{6})\.(.{3})$/; my $first_part = $1; my $second_part = $2; my $third_part = $3; my $extension = $4;
>>> <[EMAIL PROTECTED]> 07/02/02 08:23am >>> Hi filename Rnott230602.txt I want to break down the name and compare with other text, it breaks down as R / nott / 230602 (3 items) the length does not change. Now I know I can split() each char and combine into a string Is there a smarter way ??? Any thoughts greatly appreciated Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ITM Business Solutions Unit 4 Nine Trees Trading Estate Morthen Road Rotherham S66 9JG Reception Tel: 01709 703288 Fax: 01709 701549 Help Desk Tel:01709 530424 Fax: 01709 702159 CONFIDENTIALITY NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]