# regular expression theory [3]

Hello Experts,

I've got two statements concerning theorems about regular expressions:

If L1 is regular, then L1  U  L2 is regular for any language L2.

If L1 and L2 are not regular, then L1 \ L2  [L1 intersection L2]   is not regular.

is any of these statements true ?
if not , can anyone explain me why ?

Thanks in advance for any assistance !
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Consider whether the empty language is regular
0
Commented:
Look at the properties of Regular Expressions.

- An empty set is a regular expression
- If L1 is regular and L2 is regular, then so is the disjunction, if only L1 is regular then we can't say if L2 is unknown.
- Third, we know that for all a there's an alphabet of symbols

So.. the first statement is only true if L2 is regular, otherwise it is false
The second statement, intersection, the opposite is true, If L1 and L2 are regular than so is L1 \ L2.

Perhaps the following link is useful: http://jonah.cs.elon.edu/sduvall2/courses/csc351/2007spring/Lectures/Prop.ppt
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Math / Science

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.