I am using the search() function to search within a comma delimited string using join(). I need to search for an exact number such as 4 but not 14. I'm using
as the regex, but that returns the extra numbers. How can I use regex to search for an exact number as retrieved by a dynamic variable (in this case 4)?