Hi, anyone knows if there is a way to convert an input string into a Regular Expression??

As a example, if I input the string: "email@mail.com" the output string should be like: "[A-Za-z]+@[A-Za-z]+\\.com"

Thanks in advance!!