Hi all!

Do you know if exists a way (a function, a program... whatever) that given one or more strings returns the relative regular expression?

E.g: I have the string "a b c" [and "d e"] and I want back something like "\w\s\w\s*\w*"

Thanks!