View the step-by-step solution to:

Supply screenshots to support your answers.

This question was answered on Jun 18, 2017. View the Answer

Output

Complete the following tasks and submit it to the correlating assignment submissions folder. Supply screenshots to support your answers.


Procedure

Complete a regex tutorial and write regular expressions to match specified patterns.


Tasks

  1. A username (contains lowercase letters, digits, -, _; must be between 3 and 15 characters long)Match hello, 23andme
  2. Skip fo, &name, foo bar
  3. A password (contains lowercase letters, digits, -, _; must be between 3 and 15 characters long)
  4. Match password, password2014
  5. Skip pa$$word, &pass
  6. A Java variable name (contains letters, digits, _ and $; cannot start with a digit)Match hello, _hello_, HelloWorld2014
  7. Skip 7hello, hello world, hello!
  8. A floating point number with a decimal pointMatch 1.0, 1.5, -2.1, +3.14
  9. Skip 1, -2
  10. A hexadecimal number (starts with # or 0x and contains 3 or 6 hex digits)Match #FFF, 0xABCDEF, #123456
  11. Skip 0x, 0x12, #1234
  12. A username (contains letters and digits) from an email that ends with peacocks.uiu.edu. Capture username as a groupMatch doej123 in d..[email protected]
  13. Skip d..[email protected]
  14. An email from a domain .edu. A username may contain a period
  15. Match doej123 in d..[email protected], d..[email protected], d..[email protected]
  16. Skip h..[email protected], h..[email protected]
Sign up to view the entire interaction

Top Answer

Please check the attachment for the solution. I have also taken screenshots to show... View the full answer

regular expressions.zip - Preview not available

This question was asked on Jun 16, 2017 and answered on Jun 18, 2017 for the course CS 212 at Upper Iowa.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards