in reply to regex on a line
you might get what you want with a simple split(), but maybe you have those '\s*' because sometimes you don't have whitespace between the fields...
you could use only one regex, and with it capture both fields:
m/^Update Status:\s*?(\w+)\s*?\(\w+:?\s*?(\w+)\)/
and then:
($target, $view) = ($1, $2);
hope this helps,
|
|---|