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
Browsing Internet and Torrent
Is There Asp Code to read folder contents and create hypelinks?
access to css 11503 using GUI
Raid 1 Rebuild Failed - Adaptec 1210SA
Network connections and startup speed on new computer
I need to stop, then re-start, a thread in a web service using IIS
switching networks on a cicso asa5510
Wyse thin client and Citrix display/graphic lag
SBS2008 - Exchange not receiving emails
Comparison Netgear ReadyNAS vs. Buffalo Terastation