Monday, March 8, 2021 alternative solution has an interactive lessons for Regular Expression and in this post, I want to solve all the lessons with a solution different from the one the provided.

For example: \w matches any word character (equal to [a-zA-Z0-9_]), so if the solution on is \w then I have to look for another way like [a-zA-Z0-9_] to solve to lesson.

Lets get started...

Exercise 1: Matching Characters

Exercise 1½: Matching Digits

Exercise 2: Matching With Wildcards

Exercise 3: Matching Characters

Exercise 4: Excluding Characters

Exercise 5: Matching Character Ranges

Exercise 6: Matching Repeated Characters

Exercise 7: Matching Repeated Characters

Exercise 8: Matching Optional Characters

No comments:

Post a Comment