I’m trying to remove zipcode from address line
12345 Steele Creek Road, Charlotte, NC 28273, USA
This is what i have so far
var FullAddress = '12345 Steele Creek Road, Charlotte, NC 28273, USA';
var matches = FullAddress.match(/[^0-9][0-9]{5}/); // http://gskinner.com/RegExr/
alert(matches);
I can’t seem to get rid of the white space in front of the zipcode the returned. i tried adding \s \S just don’t know regex well enough.