MoshiachNow
IS-IT--Management
HI,
I have 2 strings :
08/31/2006 08:47a 745,967 creoALRT.LOGcreoALRT.LOG
12/10/2006 03:08a 219,850 creoALRT_2006_11_06_001.log
I need the below regex to match the whole string starting with "creoALRT":
$LOGALERT =~ s/.*(creoALRT.*\.log)/$1/i;
However,in the first case ,the result is "creoALRT.LOG" ....
Appreciate help
Long live king Moshiach !
I have 2 strings :
08/31/2006 08:47a 745,967 creoALRT.LOGcreoALRT.LOG
12/10/2006 03:08a 219,850 creoALRT_2006_11_06_001.log
I need the below regex to match the whole string starting with "creoALRT":
$LOGALERT =~ s/.*(creoALRT.*\.log)/$1/i;
However,in the first case ,the result is "creoALRT.LOG" ....
Appreciate help
Long live king Moshiach !