Каждый раз как я использую Regex, я открываю для себя что-то новое. Regex это безграничные возможности. Какими бы страшными на первый взгляд они не казались, без Regex в программировании не обойтись. Благодарю за кату!
Do you know what regex means? It's short for regular expression. Google that. And in this kata you should only write the regex inside those quotes and nothing more.
I have been training for the mid exam, and last time I took a training quiz from the book I got 100. But in the exam, somehow I got 65. Well, I only trained for the first 3 chapters of the book but the teacher said the first 5 chapters are going to be included. Well, still I don't care. I got 100 in my quizes. There must be something wrong with the exam or the teacher themself!
Of course, the exam and the teacher is not to be blamed, but the person not trained or didn't dive deeper enough into the materials. This applies to what you have as well. To you it is fine in your machine, with your tests and what you think the strings would be. But deep down, strings can come in many forms that you haven't thought of and your regex failed to handle those said strings. Now, it is back to you whether you want to fix it or nah. The strings are shown to you in the tests. You can add those said failed strings to your local tests assertion.
Каждый раз как я использую Regex, я открываю для себя что-то новое. Regex это безграничные возможности. Какими бы страшными на первый взгляд они не казались, без Regex в программировании не обойтись. Благодарю за кату!
This kata was decided to stay.
Approved.
Something new that I learnt.
Wow. Learned so much!
Do you know what regex means? It's short for regular expression. Google that. And in this kata you should only write the regex inside those quotes and nothing more.
This comment has been deleted.
Well, your response sounds similar to this story:
Of course, the exam and the teacher is not to be blamed, but the person not trained or didn't dive deeper enough into the materials. This applies to what you have as well. To you it is fine in your machine, with your tests and what you think the strings would be. But deep down, strings can come in many forms that you haven't thought of and your regex failed to handle those said strings. Now, it is back to you whether you want to fix it or nah. The strings are shown to you in the tests. You can add those said failed strings to your local tests assertion.
This comment has been deleted.
Why do you ask this question when your PP is the because?
Why do you think something is wrong with the kata, and not with your solution?
ive never used regex in my life eye opener
see here
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse and use code block formatting next time.
See the initial code, you only need to write a regular expression, not a function:
This comment is hidden because it contains spoiler information about the solution
Loading more items...