automata-from-regex
automata-from-regex copied to clipboard
Code doesn't work for certain regular expressions
trafficstars
This code won't work for any expression having brackets, as well as expressions with a '' in the beginning followed by other characters. For example, ab, baba, abb etc.
It seems that the star symbol is not being displayed here. I meant expressions like a(star)b, b(star)aba, a(star)bb etc.
Can you give an example of a string (corresponding to a regex) that doesn't match as expected? Would you be willing to fix this? 😅
Actually I just tested the bug as mention above, but this code still work well. bb, abb, aabb can be matched with regex (aSTARbb).