Are you using `+` where you really mean `|`? `*+` in a regexp doesn't make a lot of sense (1 or more repeats of 0 or more repeats -- same as just `*`)
– Chris DoddJun 27 '16 at 18:13
`|` normally means alternative, while `+` usually means "repeat the previous thing 1 or more times" -- very similar to `*` which is "repeat 0 or more times"
– Chris DoddJun 27 '16 at 18:20
The general way of converting an RE to an NFA is first to convert to an NFA with epsilon transitions (which is a trivial and mechanical, though may be tedious and large) and then eliminate the epsilon transitions (which is fairly simple). Which part are you having trouble with? It may be easier (or at least less drawing) to remove (some of) the epsilons after intermediate steps of converting to NFA w epsilons
– Chris DoddJun 27 '16 at 18:27
Was so hoping to get the quote from the textbook... Chances are it is all in there. But books need to be read.
– trincotJun 27 '16 at 18:28
* is Kleene star, it adds a new start state and makes the new start state the final state. And + acts like a union so it adds a new start state and places epsilon transitions from new start state to the start states.
– tadashiJun 27 '16 at 18:31