Combining string pattern


#1

There is datatable as follows:
row(0)(“ab”,"-","-")
row(1)(“vwxyz”,"-","-")

and I want to make a string pattern to use Regex pattern like
“.b|a.”
“.wxyz|v.xyz|vw.yz|vwx.z|vwxy.”

I believe I can do it with loop (counting length) and combining strings but
cannot find simple way…
How Can i make it?