Can you use a regular expression for this instead? We want this to work in older browsers, too. Thanks.