in reply to regex help
By whitespace, do you mean newline, or do you mean that it could possibly be "99999, US irrelevant"?
Assuming newline, since you mentioned "complete line":
if( $string =~ m/Service Location:\s+(.+)$/ ) { $address = $1; }
You should read perlretut and perlrequick, for starters.
Dave
|
|---|