in reply to Re: Multiline regex
in thread Multiline regex

This works in this case because the next '=' after the required variable also happens to be the last. .*? instead of .* will make sure perl finds the first '=' after the match on "my_variable". It's simpler than my solution with look ahead assertion though, guess I overdid it :)