Hi! Im having troubles trying to understand regex,im currently working on a function that extracts a number between the dollar sign well i have no problem with checking before the number but i do have a problem in terms of checking in the middle,here’s an example : 14$99
function extractNumber(string){
let extract = string.match(/$(\d+.\d+)/)
}
I expected to be " string.match(\d+.$\d+) " but it returns me an error.
Thanks in advance.
pd:Sorry for my bad english ahah