More flexible URL substitution pattern