Question

6. [4 marks] Write a regular expression over the alphabet of numeric digits that matches strings formatted as integers betwee

0 0
Add a comment Improve this question Transcribed image text
Answer #1

******************************************************************************************
Please Upvote the answer as it matters to me a lot :)
*****************************************************************************************
As per HomeworkLib expert answering guidelines,Experts are supposed to answer only certain number of questions/sub-parts in a post.Please raise the remaining as a new question as per HomeworkLib guidelines.
******************************************************************************************

regular expression from 33 to 99 is

(3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9)

regular expression from 100 to 499 is

(1+2+3+4)(0+1+2+3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9)

regular expression from 500 to 526 is

5(0+1)(0+1+2+3+4+5+6+7+8+9) + 52(0+1+2+3+4+5+6)

so the final answer is

(3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9) + (1+2+3+4)(0+1+2+3+4+5+6+7+8+9)(0+1+2+3+4+5+6+7+8+9) + 5(0+1)(0+1+2+3+4+5+6+7+8+9) + 52(0+1+2+3+4+5+6)

Add a comment
Know the answer?
Add Answer to:
6. [4 marks] Write a regular expression over the alphabet of numeric digits that matches strings...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT