Test, validate and match regular expressions
This regular expression validates numeric strings representing grades from 0 to 10. It accepts the exact string '10' or any single digit from 0 to 9, which can optionally include a single decimal place (e.g., 8.5). This makes it perfectly suited for form validations in educational or grading systems where scores are strictly bounded between 0 and 10 with one decimal point.