I haven't really had to do any kind of scripting/coding in over a decade, so I'm super rusty.
I'm writing a simple function that will check for the presence of any length string of numbers at a certain point in a url. I can use the href attribute to see if the
href == "something.com/requests/1234"
, but not sure how to write it to check for something like
href == "something.com/requests/[NUMBERS HERE]"
I'm assuming some RegEx might be in order...but that's the devil's tongue, and I woefully do not speak it. Could I get some help? Would RegEx be the best approach anyways?
1. There will never be anything after that set of numbers.
2. I need to be able to capture that set of numbers to store in a variable.