W
William Tang
I have a string such as:
XYZ-ABC.xml NEW 1.0 myfolder/mylocation wtang.001
I use the following grep function try to grep it:
grep(/^\s*\w+\.\w+\s+([0-9\.]+|New)\s+[0-9\.]+\s+[\w\\\/\.]+\s+\S+\s*$/,
<SCRFILE> );
where <SCRFILE> is the filename that store this string.
It seems that it can't read this '-'. If I change it into '_', it
works fine.
Did I missing something?
Thanks,
William
XYZ-ABC.xml NEW 1.0 myfolder/mylocation wtang.001
I use the following grep function try to grep it:
grep(/^\s*\w+\.\w+\s+([0-9\.]+|New)\s+[0-9\.]+\s+[\w\\\/\.]+\s+\S+\s*$/,
<SCRFILE> );
where <SCRFILE> is the filename that store this string.
It seems that it can't read this '-'. If I change it into '_', it
works fine.
Did I missing something?
Thanks,
William