Simplified target_expansion using a nifty regular expression.