Perl Scripting: Search for Regular Expression not work :(
I'm writing a Perl script to find an old key in a file and replace it with a new code
first the program should find the old key in the input file. here is the way I used in my script. but it doesn't work. May you please let me know what is wrong and how I can correct it? the key is stored in the file in the following format: PHP Code:
here is my script to find this key Code:
open(INPUT,"inputfile.txt") or die "cant open file"; |
Looks like your regex should be more like
Code:
/Key=\(\"([^"]+)\"/ --- rod. |
All times are GMT -5. The time now is 02:50 PM. |