How is the algorithm to originate and obtain a wildcard-patterned string out of some strings generated from its expansion
Not sure it is clear what you wanna accomplish. Would you be able to provide examples of what you want?
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
?
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.