I wanted to convert sets of strings to regular expression using java.
I searched many things for it but there was no such satisfying answer available on the internet which resolves my issue. so I prefer to ask here.
First is it possible to convert it if yes, then kindly suggest me the way to get rid of this issue I'm facing?
Let's suppose I have sets of strings
abb
abababb
babb
aabb
bbbbabb
...
and I want to make a regular expression for it such as
(a+b)*abb
how it can be possible?