I tummbled into this RegEx and I googled it. A lot. But unfortunately didn't quite understand how RegEx works...
So to make this quick since only a tiny winny part of my work requires it so I will be needing you guys. again :))
So here it goes...
All I want is to retrieve a specific string with a format of
Use regex in
String.prototype.match() to get specific part of string.
var str = "NameName975x945NameName"; var match = str.match(/[\d]+x[\d]+/); console.log(match)