Exercise – (Solution)

$ 20.99
Category:

Description

THINK OF ALL POSSIBLE ITERATIONS OF YOUR ‘TARGET’.

TEST THEM! (UNIT TESTS
SEEM MIGHTILY
IMPORTANT)

WEBSITE TO HELP DEBUG IT (REGEX101.COM IS SUPER USEFUL).

USE GROUPS! (?: … )
1. Find all words that starts with a B, an E, or an F
2. Find all days the dates format in the text are MM/DD/YYYY.
3. Find all web address domains from the list of strings the domains of a website are after the www.
4. Pass the tests.
Come up with wacky things to look for in tests (e.g., words that have more c’s than b’s).

See if there’s a possible regular expression for it. Give it to your neighbors. See if they can solve it.
Appendix

ISP addresses (four one-to-three digits number separated by dot such as 192.168.106.123 or 127.0.0.1)
Zip Codes (Any 5 digit number followed by an optional dash and anywhere from 0 to 4 digits after that. E.g: 48019, 48098-4443, 12345-67)
Strings of the following format: “ID: N’), where N is a number that ranges from 1 to 84.

Reviews

There are no reviews yet.

Be the first to review “Exercise – (Solution)”

Your email address will not be published. Required fields are marked *