I have a string of tags delimited by semicolons:
"red; yellow; blue; green; purple"
I would like to strip out all the tags that do not match a substring (case-insensitive.)
For example, if I have a substring "Bl" I would like to return "blue".
Any suggestions as how to best accomplish this in javascript? Specifically, I'm wondering if there is a one-step method for doing this in regex...
Thanks in advance!