For example , I would like to compare 0-91 and 0-93 , in the logic I'm using , 0-93 is bigger than the 0-91 because I'm only looking at the numbers after 0-, which are 91 and 93 . Basically I'm building a form where it checks for ranges of numbers but in the form , the numbers could be typed in for example as 91 and 93 , but they are usually typed in as 0-91 and 0-93 , how can I write the javascript logic so that the 0- is ignore while comparing the two numbers ?
Basically convert 0-91 and 0-93 into integers 91 and 93 , then compare them.
0-x?"0-93".match(/0-(\d+)/)[1]?