The algorithm to obtain a wildcard-patterned string

The algorithm to obtain a wildcard-patterned string
0

#1

How is the algorithm to originate and obtain a wildcard-patterned string out of some strings generated from its expansion


#2

Not sure it is clear what you wanna accomplish. Would you be able to provide examples of what you want?


#3

let’s be oblivion of:
m*i*c

$ ls m*i*.c

main.c
medium.c
movie.c

let’s be very informed by 3 lines string above

How, by only the given strings, we get
m*i*c
?


#4

Never had to do this kind of thing before.
I would search for regex reverse engineering. Found an article thst might be of interest, but this definitely require some digging.