Week 3 Homework - Programming-from-A-to-Z/A2Z-F15 GitHub Wiki
Create a simple regular expression exercise for yourself. This can be a small assignment, just spend an hour or so playing around with regular expressions and see what questions come up. Here are some ideas:
Add a regular expressions to your previous assignment or something else you've made in JavaScript.
Experiment with regular expressions in a text editor (like Sublime) and document how it worked for you in a blog post. No programming needed for this one!
Play the Regex Golf game and document your results in a blog post. No programming needed for this one either!
Taking inspiration from the Pirate Translator, re-imagine a text using replace().
Write a regular expression that matches any e-mail address and validate user input. (Tricky step two: take that regular expression and use replace() to turn that e-mail address is made into a mailto: anchor tag.)
Create an example that reads an HTML page and removes any markup and leaves only the raw content.
Adapt the regex tester to be a replace() or split() tester.
Create a regex that matches only code comments in code.
In preparation for next week, add a link to an API or some data source (even just data that appears in raw form on a web page) that interests you. I'll use this list to prepare examples for next week.
Questions?
Will we go over web scraping at all (in addition to working with APIs)? If there's not enough time, can you post an example or direct us toward a tutorial? Thank you! (Rebecca)
why doesn't this work: [\s-()] but and this does: [\s-]() (Oryan)