Javascript examples for jQuery:Selector
select specific element inside text?
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> </head> /*from www .j a va 2 s . c om*/ <body> <script type="text/javascript"> var string = 'vt_wildtest2^508^508', number = string.match(/[0-9]+$/)[0]; console.log(number); </script> </body> </html>