"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Wise Monks,
Yes, this is homework. I'm looking for explanation, not just the answer I would like to enlist your help in coming up with two general regular expressions. Perl code is not necessary only general regular expression notation. Thank you, 1)The set of strings over {a,b,c} with an odd number of occurences of the substring ab 2)The set of strings over {a,b} with an even number of a's or an odd number of b's Thanks again OK! people solution for problem 1: (b U a*c)* a+b (b U a*c)* ((b U a*c)* a+b (b U a*c)* a+b (b U a*c)*)* Comments? In reply to Regex Homework by chuleto1
|
|