I got a HTML Table with values inside each row.
The datas inside the consist the following format:
ABCD (1000.50)
$('.tdclass').each(function(index){
var test = push($(this).text().match(?regex?));
});
Well, regex is definitely not one of my strength 😉
What is the according regex to get the values inside the parentheses?
Any help would be appreciated!
If the first part of a string is a fixed length, you can avoid complicated procedures entirely using
slice():Otherwise, you can use
indexOf()and, if you need it,lastIndexOf()to get the value: