(log doggies) (log needs)
^\\(log (.*)[^)]\\)\\s*\\(log (.*)[^)]\\)$
It works with the exception of missing character at the end \"s\" as:
The [^)] eats your s-es. Why do you need it?
[^)]
s
my $s = '(log doggies) (log needs)'; say for $s =~ /^\(log (.*)\)\s*\(log (.*)\)$/;
Output:
doggies needs