I have the string
text ='something here width="560" something here'
and I would like to pull out the width value. I tried
width = text.match(/width=\"[^\"]/g);
but that just returns an array with one value = 5. Could someone give me a nudge in the right direction?
Thanks