Thread
:
Get dimensions from text
View Single Post
01-15-2013, 02:41 PM
PM User
|
#
3
rnd me
Senior Coder
Join Date: Jun 2007
Location: Urbana
Posts: 3,455
Thanks: 9
Thanked 466 Times in 450 Posts
i find split simpler, but there's probably a thousand ways to do this:
Code:
"tumblr_mgn6mfe9aD1rbaz5bo1_500.jpg (500×705)" .split(")")[0].split("(")[1].split("x").map(Number);
__________________
my site
(updated 5/13)
STATS
(2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8%
IE10:10%
rnd me
View Public Profile
Visit rnd me's homepage!
Find More Posts by rnd me