This problem has made me gone insane and cant seem to fix it...although I am a complete noob when it comes to regular expressions.
I basically want to match the numbers at the end of the following string:
which would return "23"Code:<input type="checkbox" id="4_23_check" value="off" style="float:left;line-height:24;" />23
I know this is probably super simple, I tried doing
But couldn't get er' jump started. Any assistance would be awesome!Code:var re = "/\/>(.*?)/"; var newStrings = theBigStringAbove.match(re);


Reply With Quote

Bookmarks