Lets say I have a comma separated list of extensions:
jpg,jpeg,png
Is there a way that I can turn this into a regex that javascript would smile at? Perhaps a function out there somewhere or some internal way of doing it that I'm completely missing?
So I have a javascript function that I have to actually render to the page from within vb.net which contains an option "allowedFileTypes: " But I need ( for end users purpose ) the ability to convert the above mentioned comma separated string into a valid regex.
Any possible way?
Thank you.