We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!Submit Feedback
That must have been a pretty good class on web scrapping; the only thing that I don't undersand much is the use of two REGEX operators on the Ingredients group (.*?)
The asterisk operator should match the preceeding character zero or more times, and the ? operator should match it zero or one time. I am a little confused on the purpose of the ? operator following the asterisk. It seems that with or without it pulls the same results. Is there any strategy behind it?
Hi @JORGE4900. I used the (.*?) as habit as I have had too many times when my wildcard .* returned to long of a string. In this specific data set it is not needed and (.*) would return the same results. Adding the ? makes the operator non-greedy. There is a great page on Perl Syntax at:
If you get a chance to take the webscraping (or any other pre-conference classes) at #Inspire I would strongly recommend them.