Assuming that's a caret followed by a left square bracket (as opposed to an Escape character), you can use:
s/^\^\[//; -- Mark Thomas [EMAIL PROTECTED] Sr. Internet Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; > -----Original Message----- > From: Craig Sharp [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 2:04 PM > To: [EMAIL PROTECTED] > Subject: [Perl-unix-users] URGENT Regex problem > > > Hi all, > > I have several lines that start as follows: > > ^[(s3B > > I need to remove the ^[ from each line. > > Beware that there are lines in the file that do not begin as shown. > > Thanks, > > Craig A. Sharp > Unix Systems Administrator > DNS Administrator > Roush Industries > Office: 734-466-6286 > Cell: 734-231-6769 > Fax: 734-466-6939 > [EMAIL PROTECTED] > ==================================================== > I have not lost my mind, it's backed up on tape somewhere! > ==================================================== > > _______________________________________________ > Perl-Unix-Users mailing list [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs