Retired
Make ruby 'match' output similar to js 'match' return (retired)
Description:
Guys, help me.
I do not know how solve this puzzle.
Need to write Ruby code with 'match' that works like s.match(/([?!])\1*/g)
in JAVA SCRIPT.
Input string have 5 characters length, and contains only "!" and "?".
Use exactly match, not scan method, please.
Thank you
PS: inspired by https://www.codewars.com/users/myjinxin2015 kata.
Regular Expressions
Similar Kata:
Stats:
Created | Nov 29, 2017 |
Warriors Trained | 111 |
Total Skips | 26 |
Total Code Submissions | 144 |
Total Times Completed | 23 |
Ruby Completions | 23 |
Total Stars | 2 |
% of votes with a positive feedback rating | 63% of 12 |
Total "Very Satisfied" Votes | 5 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |