First 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 this as:"\\domca-prn01\DH4-2139-HP4"
The problem I am having is getting the string that exist after the single "\" in this situation the string "DH4-2139-HP4". I am thinking backreference maybe the answer. -----thanks thanks in advance.if ( $string =~ /\\\\.*\\.*/) { print"match\n"; }
In reply to pattern matching problem by kirk123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |