Finding the complement of a regular expression

Posted by Bo Tian on Stack Overflow See other posts from Stack Overflow or by Bo Tian
Published on 2010-05-28T23:19:22Z Indexed on 2010/05/28 23:22 UTC
Read the original article Hit count: 207

Filed under:

alt text

There's a question on my exercise sheet to find the complement of r = (a|b)*ab(a|b)*

I've come up with a solution, but I'm not sure if it's correct. Please help me to check, and correct my errors.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about regex