7 kyu
Is valid identifier?
609 of 2,312SIKV
Description:
Given a string, determine if it's a valid identifier.
Here is the syntax for valid identifiers:
- Each identifier must have at least one character.
- The first character must be picked from: alpha, underscore, or dollar sign. The first character cannot be a digit.
- The rest of the characters (besides the first) can be from: alpha, digit, underscore, or dollar sign. In other words, it can be any valid identifier character.
Examples of valid identifiers:
- i
- wo_rd
- b2h
Examples of invalid identifiers:
- 1i
- wo rd
- !b2h
Fundamentals
Regular Expressions
Strings
Similar Kata:
Stats:
Created | Nov 4, 2015 |
Published | Nov 4, 2015 |
Warriors Trained | 4063 |
Total Skips | 300 |
Total Code Submissions | 11554 |
Total Times Completed | 2312 |
Java Completions | 609 |
JavaScript Completions | 671 |
Python Completions | 698 |
Ruby Completions | 159 |
CoffeeScript Completions | 22 |
C# Completions | 296 |
Total Stars | 54 |
% of votes with a positive feedback rating | 92% of 399 |
Total "Very Satisfied" Votes | 340 |
Total "Somewhat Satisfied" Votes | 53 |
Total "Not Satisfied" Votes | 6 |