Beta
RegEx Like a Boss #6: Valid Parenthesis
Loading description...
Mathematics
Regular Expressions
Strings
Fundamentals
Algorithms
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.
Test error messages should use
repr
strings, otherwise invisible characters are confusing.Good improvement. Thank you. Had no idea of the use of repr
(ASCII VT character there), but
So what exactly "spaces" are?
Whitespaces only apparently.
But is should match newlines...
A Space is the Ascii character 32. It is called "Space". Can I count this as resolved?
There are non-breaking space, ideographic space etc... But even if it's just the ASCII space, why should
9\n
match?This kind of solution shouldn't pass:
https://www.codewars.com/kata/reviews/5c3fa3e3b6adcb00013461ca/groups/5c414a69b6adcb0001d455da
resolved
From description:
In the Sentence there could also be words (made upper letters, lower case letters and digits) and spaces
. letters, digits and spaces that is the pool of elements of which words can be created.Okay...
In the Sentence
? What is aSentence
? In titlecase? I though we were talking aboutstrings
(Create a Regular Expression that matches a string) You'd better add cases to the description to clear the ambiguity.I use Sentence and String intechangeable. Probably I should correct it to avoid confusion