Hi
I am reading a text file which contain the following string:
my $string = "\\domca-prn01\DH4-2139-HP4"
I need to verify that the string I am reading in has "\\" follow by either characters or numbers then "\" then either characters or numbers.
I try it as:
if ( $string =~ /\\\\.*\\.*/) { print"match\n"; } But it did not work.
thanks in advance.
I am reading a text file which contain the following string:
my $string = "\\domca-prn01\DH4-2139-HP4"
I need to verify that the string I am reading in has "\\" follow by either characters or numbers then "\" then either characters or numbers.
I try it as:
if ( $string =~ /\\\\.*\\.*/) { print"match\n"; } But it did not work.
thanks in advance.