Hello Everyone,
here i am posting regex prob. can anybody tell me why is not working. i want replace NVRAM 0x0000C000 to 0x0000FEFF; string with space string.
output should be only this string == asdweqrc
here i am posting regex prob. can anybody tell me why is not working. i want replace NVRAM 0x0000C000 to 0x0000FEFF; string with space string.
Code:
..
$str="NVRAM 0x0000C000 to 0x0000FEFF;asdweqrc";
$str =~ s/[NVRAM]\s+0[xX][0-9a-fA-F]\s+[to]\s+0[xX][0-9a-fA-F]//g;
printf("str=$str");
Comment