Retired

Regular Expression - Check if divisible by 0b101 (5) (retired)

Description:

This kata is a duplicate, so not solvable, try this one: https://www.codewars.com/kata/regular-expression-for-binary-numbers-divisible-by-5

Create a regular expression capable of evaluating *binary strings* (which consist of only `1`'s and `0`'s) and determining whether the given string represents a number divisible by `5`.

Note:

  • Empty strings should be rejected.
  • Your solution should reject strings with any character other than 0 and 1.
  • No leading 0's will be tested unless the string exactly denotes 0.
Algorithms
Puzzles
Games
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Fundamentals
Strings
Data Types

Stats:

CreatedJan 26, 2016
Warriors Trained155
Total Skips10
Total Code Submissions214
Total Times Completed30
JavaScript Completions30
Total Stars5
% of votes with a positive feedback rating92% of 19
Total "Very Satisfied" Votes17
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes1
Total Rank Assessments8
Average Assessed Rank
4 kyu
Highest Assessed Rank
3 kyu
Lowest Assessed Rank
6 kyu
Ad
Contributors
  • Hacker Sakana Avatar
  • smile67 Avatar
Ad