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
VBA insert error
Better Search - Full-Text Indexing?
How to block Remote Desktop to other domain admins on a particular server
Sniffing voice related traffic
IE8 Submit Form with [Enter] Key, not functioning properly
Load Balancing two ADSL connections for small office
How can I run a php script before all other processing in the htaccess file, think its a regex problem?
regular expression
Mac CSS Issue
Exchange database backup failing with Arcserve v15