I have the regex string and I want to classify, is this regex has fixed prefix or no.
For example:
abcdef.*g[0abc]{0,5}hi
has prefix abcdef
]1234vac.*12345
has prefix ]1234vac
(abc)+123
has prefix abc
but
[A-z]+12345
doesn't has fixed prefix (it starts from unknown number of symbols from set A-z)
Am I truly understand that this problem will not be solved in a general form?