Exam UiARD All QuestionsBrowse all questions from this exam
Question 56

A developer needs to automate a process which involves capturing support ticket numbers from the email subject line. For example, the email subject line includes: "Action Required – XA/135" where "XA/135" is the ticket number. The robot should validate the pattern of the ticket number before proceeding.

Which expression exclusively matches the ticket number pattern from the subject line?

    Correct Answer: D

    To match the ticket number pattern 'XA/135' one needs to use a regular expression that captures two alphanumeric characters followed by a forward slash and then three digits. The pattern '(\w{2})/(\d{3})' fits this requirement as it ensures exactly two word characters before the slash and exactly three digits after it.

Discussion
Engineer24Option: D

If you want to match exactley "XA/135", and you will test in studio the answer will be D. The pattern expresion is: "(\w{2})/(\d{3})".

IngvarnOption: D

Ans : D

bhaskar5a5Option: D

Ans : D

MirjalolOption: D

D works fine

JmIgualadorOption: A

You want to extract the Number from the entire Subject of the mail, so you have to include Anything in the regex.

JmIgualador

Ok the correct answer is D.