For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > May 2006 > Re: search and replace help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: search and replace help
Matt Garrish

2006-05-31, 10:00 pm


<bhooshan.dixit@gmail.com> wrote in message
news:1149122210.685665.105900@g10g2000cwb.googlegroups.com...
> Hi all,
> I have a file which looks like this
> ^$-=(BILL_STG.BILL
> ^$-=(BILL_STG.BILL_SQ
>
> i need help in perl to open the file, clean out the wierd charcters
> before the 'BILL' on each line and write back to file. The characters
> appear on start of each line. I need to elminate everything until and
> including the '(' character
>


What have you tried so far? What are "weird" characters? Which of the two
BILLs on the above lines do you remove until?

I would suggest you start with a little reading:

http://perldoc.perl.org/perlopentut.html
http://perldoc.perl.org/perlre.html

Matt



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com