6 kyu
Regex for a decimal number divisible by 4
384 of 419kolichj
Description:
Your task is to write a regular expression that matches positive decimal integers divisible by 4. Negative numbers should be rejected, but leading zeroes are permitted.
Random tests can consist of numbers, ascii letters, some puctuation and brackets. But no need to check for line breaks (\n) and non-ASCII chatracters, nothing that fancy in the tests.
There is 50 characters limit for this regex to avoid hardcoding and keep the "puzzle" status :) Good luck!
Regular Expressions
Puzzles
Similar Kata:
Stats:
Created | Nov 22, 2018 |
Published | Nov 22, 2018 |
Warriors Trained | 999 |
Total Skips | 14 |
Total Code Submissions | 3552 |
Total Times Completed | 419 |
Python Completions | 384 |
Ruby Completions | 55 |
Total Stars | 19 |
% of votes with a positive feedback rating | 91% of 116 |
Total "Very Satisfied" Votes | 99 |
Total "Somewhat Satisfied" Votes | 12 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 5 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |