Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-15376

Quiz Incorrectly Marks Valid Regex [a-z][a-z][a-z] as Wrong for Matching Three Consecutive Lowercase Letters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • RH134 - RHEL10.0-en-2-20250821
    • RH134
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/rh134-10.0/pages/ch02s03
      Reporter RHNID: shasingh01
      Section Title: Quiz: Matching Text with Regular Expressions                                                                        

      Issue description

      The quiz question:

      "Which expression matches lines that contain at least three consecutive lowercase letters?"

      currently only accepts the answer:

      [a-z]
      {3,}

      as correct. However, the option:

      [a-z][a-z][a-z]

       

      is also correct, as it matches any substring of three consecutive lowercase letters within a line. Despite this, the quiz marks it as incorrect.

      Suggestion/Feedback

      Update the quiz logic to accept [a-z][a-z][a-z] as a correct alternative answer, or update the question wording to specify if a generalized quantifier is expected (e.g., "Use regex with quantifiers").

      Please review

       

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              shasingh01 Shashi Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: