Microsoft
Software
Hardware
Network
Question : perl regex replace
I read in a file in perl into a string using
my $file= do { local $/; <INFILE> };
the file contains the following and I need to replace what is in VarFNC("neednewdatahere").
How can I make a regex to do this?
function thisismyfunction()
{
myVar= new VarFNC("thisisthedata");
myVar.startLog();
Answer : perl regex replace
Perhaps like this:
1:
$file =~ s/VarFNC\("[^"]+"\)/VarFNC("neednewdatahere")/g;
Random Solutions
2008 query in 2000
SQL Server Script to Backup Database
CBT for lotus notes 8.5 and sametime 8.5
How to use mbox in c# web application
Can you load-balance a set of printers in samba?
Conditional Formatting not printing
Interface to connect ascx events to parent via business layer code library - VB / ASP.NET
2 raid controllers managing the disk array
Outlook script to strip attachment and move to server share
XP 10 inbound connection limit question