7 kyu
Training JS #40: Regular Expression--"|", "[]" and "()"
1,218 of 1,227myjinxin2015
Loading description...
Fundamentals
Regular Expressions
Tutorials
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
It should have
Regular Expressions
tag.
This comment has been hidden.
Thanks for your feedback ;-) A fix test added:
Test.assertSimilar("http://wwwcodewarscom".match(regex),null);
(?:)
define a sub expression that is not used for thebackreference
You can read something aboutbackreference
in #41: Regular Expression--"" And you can read something about(?:)
in #42: Regular Expression--(?:), (?=) and (?!)I love these JS training Katas, they really help me to grasp these concepts much better than any reading or video could. Regular expression have been extremely confusing for me up until now. Thanks for the great content!
I'm glad I can help you. Thanks for your feedback ;-)
Nice Kata! You are cool =) Always good Katas.
thanks ;-)
Wow, seems to me that my "nickname" appears in your descripton (so you see i'm reading your descriptions;-)!)... At least i have to give you four points back;-) Again nice series - and a very good "entry" for beginners (and/or some refreshing;-))!
I will add your nickname to my next kata, can you give me eight point?
;-)... don't be so greedy (like a regexp)... saw your "#7"... is it not enough now:-)?!
I want /(((4point){10000})\1\1\1\1\1)+/ ;-)