I have a situation where, in javascript, I need to compare the contents of one string to see if it contains the exact same number in another string that could contain multiple numbers.
For example.
Source: "1234" Comparison: "1000 12345 112345 1234 2000"
It should only match on the 1234 and not on the 12345 or 112345, etc.
It also needs to match if the source occurs at the beginning or end of the line.
How would I go about doing that?