I'm trying to write a regex in javascript to match a series of numbers after a particular string without getting the string in result. So far, I have come up with this:
(?!smart_id=)[0-9]+
which is to be tested against strings like:
ksld8403smart_id=9034&kqwop
discid=783&smartid=83234&ansqw
fdsjfnfd3209sdf&smart_id=2102&hjg
but I'm getting both the numbers before and after smart_id. The tests need to be performed on https://regexr.com/