Wouldn't the best approach for that be to write a program that takes a list of words and output an optimized regex?
I'm sure an LLM can help write such a program. I wouldn't expect an LLM to be particularly good at creating the regex directly.
I'm sure an LLM can help write such a program. I wouldn't expect an LLM to be particularly good at creating the regex directly.