Javascript / Jquery - Get number from string

the string looks like this

"blabla blabla-5 amount-10 blabla direction-left"

How can I get the number just after "amount-", and the text just after "direction-" ?

12
задан Alex 17 October 2010 в 21:18
поделиться