You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, nice workshopper! It is really concise and straight forward!
The only thing that is not explained well imo, is greedy vs lazy expressions.
Exercise 13: Quotes
Here you hint at the problem and solve it by having a negative group ( [^"]* ).
Maybe a little paragraph explaining the default greedy nature of regular expressions would be nice!
(dont give away the solution, just explain that a regex will try to match as many characters as it can!)
Exercise 14: Blink
In this exercise, you should explain there is a way to make regular expressions lazy and match as few characters as possible! (+?, *?, ??)
The only way I was able to solve this problem, is because I know regular expressions from other languages (and use vim as my main editor.. 🤡). I knew this behaviour and googled how to achieve it in JS, but people who are less familiar with regex might not know this!
Anyway, I really liked this course and it was a good refresher on regular expressions and how they work/behave in JS!
Thanks a lot for your effort!
The text was updated successfully, but these errors were encountered:
Hey,
First of all, nice workshopper! It is really concise and straight forward!
The only thing that is not explained well imo, is greedy vs lazy expressions.
Exercise 13: Quotes
Here you hint at the problem and solve it by having a negative group ( [^"]* ).
Maybe a little paragraph explaining the default greedy nature of regular expressions would be nice!
(dont give away the solution, just explain that a regex will try to match as many characters as it can!)
Exercise 14: Blink
In this exercise, you should explain there is a way to make regular expressions lazy and match as few characters as possible! (+?, *?, ??)
The only way I was able to solve this problem, is because I know regular expressions from other languages (and use vim as my main editor.. 🤡). I knew this behaviour and googled how to achieve it in JS, but people who are less familiar with regex might not know this!
Anyway, I really liked this course and it was a good refresher on regular expressions and how they work/behave in JS!
Thanks a lot for your effort!
The text was updated successfully, but these errors were encountered: